mirror of
https://github.com/home-assistant/core.git
synced 2025-07-08 13:57:10 +00:00
Fix tilt-position for HmIPW-DRBL4 (#64208)
This commit is contained in:
parent
1b571db19d
commit
150bb65cad
@ -89,10 +89,9 @@ class HMCover(HMDevice, CoverEntity):
|
||||
|
||||
None is unknown, 0 is closed, 100 is fully open.
|
||||
"""
|
||||
if "LEVEL_2" not in self._data:
|
||||
if not (position := self._data.get("LEVEL_2", 0)):
|
||||
return None
|
||||
|
||||
return int(self._data.get("LEVEL_2", 0) * 100)
|
||||
return int(position * 100)
|
||||
|
||||
def set_cover_tilt_position(self, **kwargs):
|
||||
"""Move the cover tilt to a specific position."""
|
||||
|
Loading…
x
Reference in New Issue
Block a user