mirror of
https://github.com/basnijholt/adaptive-lighting.git
synced 2026-09-11 22:34:04 +02:00
use 'is None' and 'is not None'
This commit is contained in:
parent
9b8a4ad51f
commit
f7119aebaf
1 changed files with 4 additions and 4 deletions
|
|
@ -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."""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue