From 0b77a89a2ffab836f62d5a6a6abcc3f27d7ef30a Mon Sep 17 00:00:00 2001 From: Mattias Welponer Date: Mon, 18 Feb 2019 15:54:23 +0100 Subject: [PATCH] Fix HomematicIP Cloud fix cover position property (#21154) --- homeassistant/components/homematicip_cloud/cover.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/homeassistant/components/homematicip_cloud/cover.py b/homeassistant/components/homematicip_cloud/cover.py index 7675929d40f..86c11dab70d 100644 --- a/homeassistant/components/homematicip_cloud/cover.py +++ b/homeassistant/components/homematicip_cloud/cover.py @@ -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."""