Skip polling of unavailable Matter nodes (#109917)
parent
19349e1779
commit
a9b3c2e2b5
|
@ -129,6 +129,9 @@ class MatterEntity(Entity):
|
|||
|
||||
async def async_update(self) -> None:
|
||||
"""Call when the entity needs to be updated."""
|
||||
if not self._endpoint.node.available:
|
||||
# skip poll when the node is not (yet) available
|
||||
return
|
||||
# manually poll/refresh the primary value
|
||||
await self.matter_client.refresh_attribute(
|
||||
self._endpoint.node.node_id,
|
||||
|
|
Loading…
Reference in New Issue