Debug log when polling ZHA light. (#24167)

This commit is contained in:
Alexei Chetroi 2019-05-28 22:50:48 -04:00 committed by Paulus Schoutsen
parent f2033c418f
commit 9fb8144031

View file

@ -246,6 +246,7 @@ class Light(ZhaEntity, light.Light):
async def async_get_state(self, from_cache=True):
"""Attempt to retrieve on off state from the light."""
self.debug("polling current state")
if self._on_off_channel:
self._state = await self._on_off_channel.get_attribute_value(
'on_off', from_cache=from_cache)