diff --git a/custom_components/meross_cloud/cover.py b/custom_components/meross_cloud/cover.py index 71697a2ea4..7e36144c7e 100644 --- a/custom_components/meross_cloud/cover.py +++ b/custom_components/meross_cloud/cover.py @@ -7,6 +7,10 @@ from .common import (DOMAIN, ENROLLED_DEVICES, MANAGER, calculate_gerage_door_opener_id) +import logging + + +_LOGGER = logging.getLogger(__name__) ATTR_DOOR_STATE = 'door_state' @@ -40,6 +44,8 @@ def handler(self, evt) -> None: self._state = STATE_OPEN elif evt.door_state == 'closed': self._state = STATE_CLOSED + else: + _LOGGER.error("Unknown/Invalid event door_state: %s" % evt.door_state) # In cny case update the UI self.async_schedule_update_ha_state(False)