Fix HomematicIP Cloud fix cover position property (#21154)

This commit is contained in:
Mattias Welponer authored and Andrew Sayre committed 2019-02-18 08:54:23 -06:00
1 parent 4d410bf5b9
commit 0b77a89a2f
1 file changed
+1 -1
@@ -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."""