Adds a device class of 'garage' to MyQ covers (#14602)

This commit is contained in:
Aaron Bach 2018-05-23 23:58:35 -06:00 committed by Sebastian Muszynski
parent 3498234448
commit 5205354cb7

View File

@ -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."""