Add device_class support to cover component (#5881)
This commit is contained in:
parent
2103bfc824
commit
e4bbe37112
4 changed files with 42 additions and 10 deletions
|
@ -140,3 +140,8 @@ class ZwaveGarageDoor(zwave.ZWaveDeviceEntity, CoverDevice):
|
|||
def open_cover(self):
|
||||
"""Open the garage door."""
|
||||
self._value.data = True
|
||||
|
||||
@property
|
||||
def device_class(self):
|
||||
"""Return the class of this device, from component DEVICE_CLASSES."""
|
||||
return 'garage'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue