Add device_class support to cover component (#5881)

This commit is contained in:
Adam Mills 2017-02-12 14:08:06 -05:00 committed by Paulus Schoutsen
parent 2103bfc824
commit e4bbe37112
4 changed files with 42 additions and 10 deletions

View file

@ -33,6 +33,11 @@ ENTITY_ID_ALL_COVERS = group.ENTITY_ID_FORMAT.format('all_covers')
ENTITY_ID_FORMAT = DOMAIN + '.{}'
DEVICE_CLASSES = [
'window', # Window control
'garage', # Garage door control
]
_LOGGER = logging.getLogger(__name__)
ATTR_CURRENT_POSITION = 'current_position'