mirror of
https://github.com/home-assistant/core.git
synced 2025-07-25 22:27:07 +00:00
Remove zwave_js cover workaround (#59939)
This commit is contained in:
parent
958c199d80
commit
a3139595bb
@ -1,7 +1,6 @@
|
|||||||
"""Support for Z-Wave cover devices."""
|
"""Support for Z-Wave cover devices."""
|
||||||
from __future__ import annotations
|
from __future__ import annotations
|
||||||
|
|
||||||
import asyncio
|
|
||||||
import logging
|
import logging
|
||||||
from typing import Any, cast
|
from typing import Any, cast
|
||||||
|
|
||||||
@ -222,12 +221,6 @@ class ZWaveTiltCover(ZWaveCover):
|
|||||||
tilt_value,
|
tilt_value,
|
||||||
percent_to_zwave_tilt(kwargs[ATTR_TILT_POSITION]),
|
percent_to_zwave_tilt(kwargs[ATTR_TILT_POSITION]),
|
||||||
)
|
)
|
||||||
# The following 2 lines are a workaround for this issue:
|
|
||||||
# https://github.com/zwave-js/node-zwave-js/issues/3611
|
|
||||||
# As soon as the issue is fixed, and minimum server schema is bumped
|
|
||||||
# the 2 lines should be removed.
|
|
||||||
await asyncio.sleep(2.5)
|
|
||||||
await self.info.node.async_refresh_cc_values(tilt_value.command_class)
|
|
||||||
|
|
||||||
async def async_open_cover_tilt(self, **kwargs: Any) -> None:
|
async def async_open_cover_tilt(self, **kwargs: Any) -> None:
|
||||||
"""Open the cover tilt."""
|
"""Open the cover tilt."""
|
||||||
|
Loading…
x
Reference in New Issue
Block a user