From ac912b2d2dcc6e20a6654041fa242dfc87a67c24 Mon Sep 17 00:00:00 2001 From: Paulus Schoutsen Date: Sat, 4 Jan 2014 18:16:16 -0800 Subject: [PATCH] Bugfix: all lights would turn on instead of specified group if person came home. --- homeassistant/components/device_sun_light_trigger.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/homeassistant/components/device_sun_light_trigger.py b/homeassistant/components/device_sun_light_trigger.py index 284ff65940d..1158b051445 100644 --- a/homeassistant/components/device_sun_light_trigger.py +++ b/homeassistant/components/device_sun_light_trigger.py @@ -105,7 +105,8 @@ def setup(bus, statemachine, light_group=None): "Home coming event for {}. Turning lights on". 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 # if someone would be home?