mirror of
https://github.com/home-assistant/core.git
synced 2025-07-20 19:57:07 +00:00
Bugfix: all lights would turn on instead of specified group if person came home.
This commit is contained in:
parent
48026c28c1
commit
ac912b2d2d
@ -105,7 +105,8 @@ def setup(bus, statemachine, light_group=None):
|
|||||||
"Home coming event for {}. Turning lights on".
|
"Home coming event for {}. Turning lights on".
|
||||||
format(category))
|
format(category))
|
||||||
|
|
||||||
light.turn_on(bus)
|
for light_id in light_ids:
|
||||||
|
light.turn_on(bus, light_id)
|
||||||
|
|
||||||
# Are we in the time span were we would turn on the lights
|
# Are we in the time span were we would turn on the lights
|
||||||
# if someone would be home?
|
# if someone would be home?
|
||||||
|
Loading…
x
Reference in New Issue
Block a user