Fix HomematicIP Cloud fix cover position property (#21154)

This commit is contained in:
Mattias Welponer 2019-02-18 15:54:23 +01:00 committed by Andrew Sayre
parent 4d410bf5b9
commit 0b77a89a2f
1 changed files with 1 additions and 1 deletions

View File

@ -39,7 +39,7 @@ class HomematicipCoverShutter(HomematicipGenericDevice, CoverDevice):
@property
def current_cover_position(self):
"""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):
"""Move the cover to a specific position."""