diff --git a/custom_components/localtuya/cover.py b/custom_components/localtuya/cover.py index e4a135a..08e059e 100644 --- a/custom_components/localtuya/cover.py +++ b/custom_components/localtuya/cover.py @@ -88,6 +88,8 @@ class LocaltuyaCover(LocalTuyaEntity, CoverEntity): @property def current_cover_position(self): """Return current cover position in percent.""" + if self._config[CONF_POSITIONING_MODE] == COVER_MODE_NONE: + return None return self._current_cover_position @property