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

This commit is contained in:
Aaron Bach authored and Sebastian Muszynski committed 2018-05-24 07:58:35 +02:00
1 parent 3498234448
commit 5205354cb7
1 file changed
+5
+5
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."""