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!
This commit is contained in:
parent
d5e652d244
commit
b5fb382c1c
1 changed files with 3 additions and 3 deletions
|
@ -12,8 +12,8 @@ import voluptuous as vol
|
||||||
import homeassistant.core as ha
|
import homeassistant.core as ha
|
||||||
from homeassistant.const import (
|
from homeassistant.const import (
|
||||||
ATTR_ENTITY_ID, CONF_ICON, CONF_NAME, STATE_CLOSED, STATE_HOME,
|
ATTR_ENTITY_ID, CONF_ICON, CONF_NAME, STATE_CLOSED, STATE_HOME,
|
||||||
STATE_NOT_HOME, STATE_OFF, STATE_ON, STATE_OPEN, STATE_UNKNOWN,
|
STATE_NOT_HOME, STATE_OFF, STATE_ON, STATE_OPEN, STATE_LOCKED,
|
||||||
ATTR_ASSUMED_STATE, )
|
STATE_UNLOCKED, STATE_UNKNOWN, ATTR_ASSUMED_STATE)
|
||||||
from homeassistant.helpers.entity import (
|
from homeassistant.helpers.entity import (
|
||||||
Entity, generate_entity_id, split_entity_id)
|
Entity, generate_entity_id, split_entity_id)
|
||||||
from homeassistant.helpers.event import track_state_change
|
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
|
# 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)]
|
(STATE_OPEN, STATE_CLOSED), (STATE_LOCKED, STATE_UNLOCKED)]
|
||||||
|
|
||||||
|
|
||||||
def _get_group_on_off(state):
|
def _get_group_on_off(state):
|
||||||
|
|
Loading…
Add table
Reference in a new issue