Skip to content

Commit

Permalink
Merge pull request #279 from basbruss/logger
Browse files Browse the repository at this point in the history
Add extra debug logs
  • Loading branch information
basbruss authored Aug 8, 2024
2 parents 01f7475 + 9eb11be commit 9829fbe
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions custom_components/adaptive_cover/coordinator.py
Original file line number Diff line number Diff line change
Expand Up @@ -326,6 +326,7 @@ async def async_handle_state_change(self, state: int, options):
else:
_LOGGER.debug("State change but control toggle is off")
self.state_change = False
_LOGGER.debug("State change handled")

async def async_handle_cover_state_change(self, state: int):
"""Handle state change from assigned covers."""
Expand All @@ -339,6 +340,7 @@ async def async_handle_cover_state_change(self, state: int):
self.manual_threshold,
)
self.cover_state_change = False
_LOGGER.debug("Cover state change handled")

async def async_handle_first_refresh(self, state: int, options):
"""Handle first refresh."""
Expand All @@ -353,6 +355,7 @@ async def async_handle_first_refresh(self, state: int, options):
else:
_LOGGER.debug("First refresh but control toggle is off")
self.first_refresh = False
_LOGGER.debug("First refresh handled")

async def async_handle_timed_refresh(self, options):
"""Handle timed refresh."""
Expand All @@ -369,6 +372,7 @@ async def async_handle_timed_refresh(self, options):
else:
_LOGGER.debug("Timed refresh but control toggle is off")
self.timed_refresh = False
_LOGGER.debug("Timed refresh handled")

async def async_handle_call_service(self, entity, state: int, options):
"""Handle call service."""
Expand Down

0 comments on commit 9829fbe

Please sign in to comment.