Skip to content

Commit

Permalink
But do it correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
cecille committed Oct 7, 2024
1 parent b121f07 commit 3e564bf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/controller/python/chip/clusters/ClusterObjects.py
Original file line number Diff line number Diff line change
Expand Up @@ -374,8 +374,8 @@ def __init_subclass__(cls, *args, **kwargs) -> None:
"""Register a subclass."""
super().__init_subclass__(*args, **kwargs)
try:
if cls.event_id not in ALL_EVENTS:
ALL_EVENTS[cls.event_id] = {}
if cls.cluster_id not in ALL_EVENTS:
ALL_EVENTS[cls.cluster_id] = {}
# register this clusterattribute in the ALL_ATTRIBUTES dict for quick lookups
ALL_EVENTS[cls.cluster_id][cls.event_id] = cls
except NotImplementedError:
Expand Down

0 comments on commit 3e564bf

Please sign in to comment.