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

This commit is contained in:
Scott Bradshaw authored and Paulus Schoutsen committed 2018-02-22 21:53:08 -08:00
1 parent 7dcb2ae24c
commit 156206dfee
1 file changed
+1 -1
+1 -1
View File
@@ -115,7 +115,7 @@ class OpenGarageCover(CoverDevice):
@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]