diff --git a/custom_components/comelit/cover.py b/custom_components/comelit/cover.py index 4a6b732..e609cde 100644 --- a/custom_components/comelit/cover.py +++ b/custom_components/comelit/cover.py @@ -41,10 +41,10 @@ def is_closing(self): @property def current_cover_position(self): # -> int | None: - if self._position: # if not None: - return 100 - self._position + if self._position is None: + return None else: - return self._position + return 100 - self._position def set_cover_position(self, position, **kwargs): _LOGGER.debug(f"Trying to SET POSITION {position} cover {self.name}! _state={self._state}")