mirror of
https://github.com/home-assistant/core.git
synced 2025-04-23 16:57:53 +00:00
Referring to group is now always with 'group.' prefix
This commit is contained in:
parent
aa6d2373a5
commit
ae2058de70
@ -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
|
||||
|
@ -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 []
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user