Skip to content

Commit

Permalink
OpenGarage - correctly handle offline status (#12612) (#12613)
Browse files Browse the repository at this point in the history
  • Loading branch information
swbradshaw authored and balloob committed Feb 23, 2018
1 parent 7dcb2ae commit 156206d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion homeassistant/components/cover/opengarage.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ def device_state_attributes(self):
@property
def is_closed(self):
"""Return if the cover is closed."""
if self._state == STATE_UNKNOWN:
if self._state in [STATE_UNKNOWN, STATE_OFFLINE]:
return None
return self._state in [STATE_CLOSED, STATE_OPENING]

Expand Down

0 comments on commit 156206d

Please sign in to comment.