From b5fb382c1c45baf9e9019ef645e34622ef300a49 Mon Sep 17 00:00:00 2001 From: John Lindley Date: Fri, 29 Jul 2016 14:55:18 -0400 Subject: [PATCH] Add group state for locks (#2647) * Add group state for locks Added ", (STATE_LOCKED, STATE_UNLOCKED)" to _GROUP_TYPES Don't have a working HA right now, so can't test.. * Modified from homeassistant.const import * Removed white space * Line length change * Removed white space.. again! --- homeassistant/components/group.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/homeassistant/components/group.py b/homeassistant/components/group.py index 4394ef515e1..9e0c0f897e5 100644 --- a/homeassistant/components/group.py +++ b/homeassistant/components/group.py @@ -12,8 +12,8 @@ import voluptuous as vol import homeassistant.core as ha from homeassistant.const import ( ATTR_ENTITY_ID, CONF_ICON, CONF_NAME, STATE_CLOSED, STATE_HOME, - STATE_NOT_HOME, STATE_OFF, STATE_ON, STATE_OPEN, STATE_UNKNOWN, - ATTR_ASSUMED_STATE, ) + STATE_NOT_HOME, STATE_OFF, STATE_ON, STATE_OPEN, STATE_LOCKED, + STATE_UNLOCKED, STATE_UNKNOWN, ATTR_ASSUMED_STATE) from homeassistant.helpers.entity import ( Entity, generate_entity_id, split_entity_id) from homeassistant.helpers.event import track_state_change @@ -64,7 +64,7 @@ CONFIG_SCHEMA = vol.Schema({ # List of ON/OFF state tuples for groupable states _GROUP_TYPES = [(STATE_ON, STATE_OFF), (STATE_HOME, STATE_NOT_HOME), - (STATE_OPEN, STATE_CLOSED)] + (STATE_OPEN, STATE_CLOSED), (STATE_LOCKED, STATE_UNLOCKED)] def _get_group_on_off(state):