Skip to content

Commit

Permalink
Skip polling of unavailable Matter nodes (#109917)
Browse files Browse the repository at this point in the history
  • Loading branch information
marcelveldt authored Feb 8, 2024
1 parent d6e617e commit 2d88b77
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions homeassistant/components/matter/entity.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,9 @@ async def async_will_remove_from_hass(self) -> None:

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,
Expand Down

0 comments on commit 2d88b77

Please sign in to comment.