mirror of
https://github.com/home-assistant/core.git
synced 2025-07-09 14:27:07 +00:00
Debug log when polling ZHA light. (#24167)
This commit is contained in:
parent
f2033c418f
commit
9fb8144031
@ -246,6 +246,7 @@ class Light(ZhaEntity, light.Light):
|
|||||||
|
|
||||||
async def async_get_state(self, from_cache=True):
|
async def async_get_state(self, from_cache=True):
|
||||||
"""Attempt to retrieve on off state from the light."""
|
"""Attempt to retrieve on off state from the light."""
|
||||||
|
self.debug("polling current state")
|
||||||
if self._on_off_channel:
|
if self._on_off_channel:
|
||||||
self._state = await self._on_off_channel.get_attribute_value(
|
self._state = await self._on_off_channel.get_attribute_value(
|
||||||
'on_off', from_cache=from_cache)
|
'on_off', from_cache=from_cache)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user