Skip to content

Commit

Permalink
Adds a device class of 'garage' to MyQ covers (#14602)
Browse files Browse the repository at this point in the history
  • Loading branch information
bachya authored and syssi committed May 24, 2018
1 parent 3498234 commit 5205354
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions homeassistant/components/cover/myq.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,11 @@ def __init__(self, myq, device):
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."""
Expand Down

0 comments on commit 5205354

Please sign in to comment.