Make group component more flexible

This commit is contained in:
Paulus Schoutsen committed 2015-01-08 20:02:34 -08:00
1 parent f5683797aa
commit e0b424c88f
6 files changed
+106 -115

No files matched your search

+1 -2
View File
@@ -91,8 +91,7 @@ def setup(hass, config):
switch.update_ha_state(hass)
# Track all switches in a group
group.setup_group(hass, GROUP_NAME_ALL_SWITCHES,
switches.keys(), False)
group.Group(hass, GROUP_NAME_ALL_SWITCHES, switches.keys(), False)
# Update state every 30 seconds
hass.track_time_change(update_states, second=[0, 30])