Referring to group is now always with 'group.' prefix

This commit is contained in:
Paulus Schoutsen 2014-01-19 17:17:19 -08:00
parent aa6d2373a5
commit ae2058de70
2 changed files with 3 additions and 3 deletions

View File

@ -27,7 +27,7 @@ download_dir=downloads
[device_sun_light_trigger]
# Example how you can specify a specific group that has to be turned on
# light_group=living_room
# light_group=group.living_room
# A comma seperated list of states that have to be tracked
# As a single group

View File

@ -47,9 +47,9 @@ def is_on(statemachine, group):
return False
def get_categories(statemachine, group_name):
def get_categories(statemachine, group):
""" Get the categories that make up this group. """
state = statemachine.get_state(STATE_CATEGORY_FORMAT.format(group_name))
state = statemachine.get_state(group)
return state['attributes'][STATE_ATTR_CATEGORIES] if state else []