mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 03:07:37 +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._status = STATE_CLOSED
|
||||
|
||||
@property
|
||||
def device_class(self):
|
||||
"""Define this cover as a garage door."""
|
||||
return 'garage'
|
||||
|
||||
@property
|
||||
def should_poll(self):
|
||||
"""Poll for state."""
|
||||
|
Loading…
x
Reference in New Issue
Block a user