mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 21:27:38 +00:00
Open garage, add closing and opening to state (#55372)
This commit is contained in:
parent
f8ec85686a
commit
80af2f4279
@ -116,7 +116,21 @@ class OpenGarageCover(CoverEntity):
|
|||||||
"""Return if the cover is closed."""
|
"""Return if the cover is closed."""
|
||||||
if self._state is None:
|
if self._state is None:
|
||||||
return None
|
return None
|
||||||
return self._state in [STATE_CLOSED, STATE_OPENING]
|
return self._state == STATE_CLOSED
|
||||||
|
|
||||||
|
@property
|
||||||
|
def is_closing(self):
|
||||||
|
"""Return if the cover is closing."""
|
||||||
|
if self._state is None:
|
||||||
|
return None
|
||||||
|
return self._state == STATE_CLOSING
|
||||||
|
|
||||||
|
@property
|
||||||
|
def is_opening(self):
|
||||||
|
"""Return if the cover is opening."""
|
||||||
|
if self._state is None:
|
||||||
|
return None
|
||||||
|
return self._state == STATE_OPENING
|
||||||
|
|
||||||
async def async_close_cover(self, **kwargs):
|
async def async_close_cover(self, **kwargs):
|
||||||
"""Close the cover."""
|
"""Close the cover."""
|
||||||
|
Loading…
x
Reference in New Issue
Block a user