mirror of
https://github.com/home-assistant/core.git
synced 2025-07-21 12:17:07 +00:00
Adds a device class of 'garage' to MyQ covers (#14602)
This commit is contained in:
parent
3498234448
commit
5205354cb7
@ -69,6 +69,11 @@ class MyQDevice(CoverDevice):
|
|||||||
self._name = device['name']
|
self._name = device['name']
|
||||||
self._status = STATE_CLOSED
|
self._status = STATE_CLOSED
|
||||||
|
|
||||||
|
@property
|
||||||
|
def device_class(self):
|
||||||
|
"""Define this cover as a garage door."""
|
||||||
|
return 'garage'
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def should_poll(self):
|
def should_poll(self):
|
||||||
"""Poll for state."""
|
"""Poll for state."""
|
||||||
|
Loading…
x
Reference in New Issue
Block a user