Skip to content

Commit

Permalink
refactor: update logs to be more clear
Browse files Browse the repository at this point in the history
Switch logs will differentiate state changes when HA action vs non-HA
  • Loading branch information
alandtse committed Sep 30, 2020
1 parent 3304726 commit 9bfb96e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion custom_components/alexa_media/switch.py
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,9 @@ async def _set_switch(self, state, **kwargs):
if success:
setattr(self._client, self._switch_property, state)
_LOGGER.debug(
"%s set to %s", self.name, getattr(self._client, self._switch_property),
"Setting %s to %s",
self.name,
getattr(self._client, self._switch_property),
)
self.async_write_ha_state()
elif self.should_poll:
Expand Down

0 comments on commit 9bfb96e

Please sign in to comment.