mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 11:17:21 +00:00
Prevent duplicate Matter attribute event subscription (#97194)
This commit is contained in:
parent
cd84a188ee
commit
5e40fe97fd
@ -78,6 +78,9 @@ class MatterEntity(Entity):
|
||||
sub_paths: list[str] = []
|
||||
for attr_cls in self._entity_info.attributes_to_watch:
|
||||
attr_path = self.get_matter_attribute_path(attr_cls)
|
||||
if attr_path in sub_paths:
|
||||
# prevent duplicate subscriptions
|
||||
continue
|
||||
self._attributes_map[attr_cls] = attr_path
|
||||
sub_paths.append(attr_path)
|
||||
self._unsubscribes.append(
|
||||
|
Loading…
x
Reference in New Issue
Block a user