From bb85c04dde81077f7af3352247ca160fa19bcb32 Mon Sep 17 00:00:00 2001 From: Marcel van der Veldt Date: Wed, 7 Feb 2024 22:35:27 +0100 Subject: [PATCH] Skip polling of unavailable matter nodes --- homeassistant/components/matter/entity.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/homeassistant/components/matter/entity.py b/homeassistant/components/matter/entity.py index 61535d990db227..5c3f65d903ca5b 100644 --- a/homeassistant/components/matter/entity.py +++ b/homeassistant/components/matter/entity.py @@ -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,