Skip to content

Commit 38daff1

Browse files
authored
Remove node from polled attributes when its removed (#731)
1 parent f4904eb commit 38daff1

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

matter_server/server/device_controller.py

+1
Original file line numberDiff line numberDiff line change
@@ -693,6 +693,7 @@ async def remove_node(self, node_id: int) -> None:
693693

694694
# shutdown any existing subscriptions
695695
await self._chip_device_controller.shutdown_subscription(node_id)
696+
self._polled_attributes.pop(node_id, None)
696697

697698
node = self._nodes.pop(node_id)
698699
self.server.storage.remove(

0 commit comments

Comments
 (0)