From 33028dd1437852201d0830227aa56e7dc1930f26 Mon Sep 17 00:00:00 2001 From: Todd Ingarfield Date: Fri, 2 Oct 2015 10:53:36 -0500 Subject: [PATCH] Add STATE_OPEN/STATE_CLOSED to groupable states --- homeassistant/components/group.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/homeassistant/components/group.py b/homeassistant/components/group.py index 09a3ff97634..96fe2a67143 100644 --- a/homeassistant/components/group.py +++ b/homeassistant/components/group.py @@ -12,7 +12,8 @@ from homeassistant.helpers.entity import Entity import homeassistant.util as util from homeassistant.const import ( ATTR_ENTITY_ID, STATE_ON, STATE_OFF, - STATE_HOME, STATE_NOT_HOME, STATE_UNKNOWN) + STATE_HOME, STATE_NOT_HOME, STATE_OPEN, STATE_CLOSED, + STATE_UNKNOWN) DOMAIN = "group" DEPENDENCIES = [] @@ -22,7 +23,8 @@ ENTITY_ID_FORMAT = DOMAIN + ".{}" ATTR_AUTO = "auto" # List of ON/OFF state tuples for groupable states -_GROUP_TYPES = [(STATE_ON, STATE_OFF), (STATE_HOME, STATE_NOT_HOME)] +_GROUP_TYPES = [(STATE_ON, STATE_OFF), (STATE_HOME, STATE_NOT_HOME), + (STATE_OPEN, STATE_CLOSED)] def _get_group_on_off(state):