parent
7c80ef714e
commit
19d34daef0
|
@ -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]
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue