mirror of
https://github.com/home-assistant/core.git
synced 2025-07-28 15:47:12 +00:00
Add is_opening and is_closing properties to VeluxCover (#127038)
This commit is contained in:
parent
dce51b02c8
commit
ebe4ed99b5
@ -95,6 +95,16 @@ class VeluxCover(VeluxEntity, CoverEntity):
|
||||
"""Return if the cover is closed."""
|
||||
return self.node.position.closed
|
||||
|
||||
@property
|
||||
def is_opening(self) -> bool:
|
||||
"""Return if the cover is opening or not."""
|
||||
return self.node.is_opening
|
||||
|
||||
@property
|
||||
def is_closing(self) -> bool:
|
||||
"""Return if the cover is closing or not."""
|
||||
return self.node.is_closing
|
||||
|
||||
async def async_close_cover(self, **kwargs: Any) -> None:
|
||||
"""Close the cover."""
|
||||
await self.node.close(wait_for_completion=False)
|
||||
|
Loading…
x
Reference in New Issue
Block a user