Fix HomematicIP Cloud fix cover position property (#21154)
This commit is contained in:
parent
4d410bf5b9
commit
0b77a89a2f
1 changed files with 1 additions and 1 deletions
|
@ -39,7 +39,7 @@ class HomematicipCoverShutter(HomematicipGenericDevice, CoverDevice):
|
||||||
@property
|
@property
|
||||||
def current_cover_position(self):
|
def current_cover_position(self):
|
||||||
"""Return current position of cover."""
|
"""Return current position of cover."""
|
||||||
return int(self._device.shutterLevel * 100)
|
return int((1 - self._device.shutterLevel) * 100)
|
||||||
|
|
||||||
async def async_set_cover_position(self, **kwargs):
|
async def async_set_cover_position(self, **kwargs):
|
||||||
"""Move the cover to a specific position."""
|
"""Move the cover to a specific position."""
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue