OpenGarage - correctly handle offline status (#12612) (#12613)

pull/12609/head
Scott Bradshaw 2018-02-23 00:53:08 -05:00 committed by Paulus Schoutsen
parent 7c80ef714e
commit 19d34daef0
1 changed files with 1 additions and 1 deletions

View File

@ -115,7 +115,7 @@ class OpenGarageCover(CoverDevice):
@property @property
def is_closed(self): def is_closed(self):
"""Return if the cover is closed.""" """Return if the cover is closed."""
if self._state == STATE_UNKNOWN: if self._state in [STATE_UNKNOWN, STATE_OFFLINE]:
return None return None
return self._state in [STATE_CLOSED, STATE_OPENING] return self._state in [STATE_CLOSED, STATE_OPENING]