From f7119aebaf49462abcad528dd973f28385a7ec09 Mon Sep 17 00:00:00 2001 From: Bas Nijholt Date: Tue, 25 Aug 2020 18:10:41 +0200 Subject: [PATCH] use 'is None' and 'is not None' --- custom_components/circadian_lighting/switch.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/custom_components/circadian_lighting/switch.py b/custom_components/circadian_lighting/switch.py index 59aca5a9..c184fb22 100644 --- a/custom_components/circadian_lighting/switch.py +++ b/custom_components/circadian_lighting/switch.py @@ -203,13 +203,13 @@ class CircadianSwitch(SwitchEntity, RestoreEntity): self._attributes["brightness"] = None self._lights = [] - if lights_ct != None: + if lights_ct is not None: self._lights += lights_ct - if lights_rgb != None: + if lights_rgb is not None: self._lights += lights_rgb - if lights_xy != None: + if lights_xy is not None: self._lights += lights_xy - if lights_brightness != None: + if lights_brightness is not None: self._lights += lights_brightness """Register callbacks."""