Skip to content

Commit

Permalink
Added logging line
Browse files Browse the repository at this point in the history
  • Loading branch information
albertogeniola committed Dec 28, 2019
1 parent 0e7ad51 commit c883dfd
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions custom_components/meross_cloud/cover.py
Original file line number Diff line number Diff line change
Expand Up @@ -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'

Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit c883dfd

Please sign in to comment.