mirror of
https://github.com/home-assistant/core.git
synced 2025-07-17 18:27:09 +00:00
Skip polling of unavailable Matter nodes (#109917)
This commit is contained in:
parent
d6e617eff8
commit
2d88b77813
@ -129,6 +129,9 @@ class MatterEntity(Entity):
|
|||||||
|
|
||||||
async def async_update(self) -> None:
|
async def async_update(self) -> None:
|
||||||
"""Call when the entity needs to be updated."""
|
"""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
|
# manually poll/refresh the primary value
|
||||||
await self.matter_client.refresh_attribute(
|
await self.matter_client.refresh_attribute(
|
||||||
self._endpoint.node.node_id,
|
self._endpoint.node.node_id,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user