From 19d34daef078e9f45a0750ecce5feecc4cc764d2 Mon Sep 17 00:00:00 2001 From: Scott Bradshaw Date: Fri, 23 Feb 2018 00:53:08 -0500 Subject: [PATCH] OpenGarage - correctly handle offline status (#12612) (#12613) --- homeassistant/components/cover/opengarage.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/homeassistant/components/cover/opengarage.py b/homeassistant/components/cover/opengarage.py index 38fbaf0acdb..d68021d7db3 100644 --- a/homeassistant/components/cover/opengarage.py +++ b/homeassistant/components/cover/opengarage.py @@ -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]