Skip to content

Commit

Permalink
Remove node from polled attributes when its removed (#731)
Browse files Browse the repository at this point in the history
  • Loading branch information
marcelveldt committed May 31, 2024
1 parent f4904eb commit 38daff1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions matter_server/server/device_controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -693,6 +693,7 @@ async def remove_node(self, node_id: int) -> None:

# shutdown any existing subscriptions
await self._chip_device_controller.shutdown_subscription(node_id)
self._polled_attributes.pop(node_id, None)

node = self._nodes.pop(node_id)
self.server.storage.remove(
Expand Down

0 comments on commit 38daff1

Please sign in to comment.