Add SmartThings Cover platform and add cover device classes (#21192)
* Add additional device classes to Cover component; Add SmartThings cover platform; Improve lock test coverage * Enhance cover platform to support position and battery level reporting. * Add additional classes * Removed device class descriptions * Updates based on review feedback * Add test case for closed
This commit is contained in:
1 parent
0ccbf61aea
commit
d3f1ee4a89
5 files changed
+371
-12
No files matched your search
@@ -35,12 +35,27 @@ ENTITY_ID_ALL_COVERS = group.ENTITY_ID_FORMAT.format('all_covers')
|
||||
|
||||
ENTITY_ID_FORMAT = DOMAIN + '.{}'
|
||||
|
||||
# Refer to the cover dev docs for device class descriptions
|
||||
DEVICE_CLASS_AWNING = 'awning'
|
||||
DEVICE_CLASS_BLIND = 'blind'
|
||||
DEVICE_CLASS_CURTAIN = 'curtain'
|
||||
DEVICE_CLASS_DAMPER = 'damper'
|
||||
DEVICE_CLASS_DOOR = 'door'
|
||||
DEVICE_CLASS_GARAGE = 'garage'
|
||||
DEVICE_CLASS_SHADE = 'shade'
|
||||
DEVICE_CLASS_SHUTTER = 'shutter'
|
||||
DEVICE_CLASS_WINDOW = 'window'
|
||||
DEVICE_CLASSES = [
|
||||
'damper',
|
||||
'garage', # Garage door control
|
||||
'window', # Window control
|
||||
DEVICE_CLASS_AWNING,
|
||||
DEVICE_CLASS_BLIND,
|
||||
DEVICE_CLASS_CURTAIN,
|
||||
DEVICE_CLASS_DAMPER,
|
||||
DEVICE_CLASS_DOOR,
|
||||
DEVICE_CLASS_GARAGE,
|
||||
DEVICE_CLASS_SHADE,
|
||||
DEVICE_CLASS_SHUTTER,
|
||||
DEVICE_CLASS_WINDOW
|
||||
]
|
||||
|
||||
DEVICE_CLASSES_SCHEMA = vol.All(vol.Lower, vol.In(DEVICE_CLASSES))
|
||||
|
||||
SUPPORT_OPEN = 1
|
||||
|
||||
Reference in new issue
Block a user