Minor code cleanup
This commit is contained in:
1 parent
e47ac96587
commit
14023a15e6
3 files changed
+12
-18
No files matched your search
@@ -205,8 +205,8 @@ def setup(hass, config):
|
||||
for light in target_lights:
|
||||
light.turn_off(**params)
|
||||
|
||||
if light.should_poll:
|
||||
for light in target_lights:
|
||||
for light in target_lights:
|
||||
if light.should_poll:
|
||||
light.update_ha_state(True)
|
||||
return
|
||||
|
||||
|
||||
Reference in new issue
Block a user