From ae2058de7044a162979f0611cb54a5173c5f0340 Mon Sep 17 00:00:00 2001 From: Paulus Schoutsen Date: Sun, 19 Jan 2014 17:17:19 -0800 Subject: [PATCH] Referring to group is now always with 'group.' prefix --- home-assistant.conf.default | 2 +- homeassistant/components/group.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/home-assistant.conf.default b/home-assistant.conf.default index 4bcfdc5cb79..b90eaee1d4b 100644 --- a/home-assistant.conf.default +++ b/home-assistant.conf.default @@ -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 diff --git a/homeassistant/components/group.py b/homeassistant/components/group.py index fc2b0fd4148..6d8d208af40 100644 --- a/homeassistant/components/group.py +++ b/homeassistant/components/group.py @@ -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 []