Skip to content

Commit 3e564bf

Browse files
committed
But do it correctly
1 parent b121f07 commit 3e564bf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/controller/python/chip/clusters/ClusterObjects.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -374,8 +374,8 @@ def __init_subclass__(cls, *args, **kwargs) -> None:
374374
"""Register a subclass."""
375375
super().__init_subclass__(*args, **kwargs)
376376
try:
377-
if cls.event_id not in ALL_EVENTS:
378-
ALL_EVENTS[cls.event_id] = {}
377+
if cls.cluster_id not in ALL_EVENTS:
378+
ALL_EVENTS[cls.cluster_id] = {}
379379
# register this clusterattribute in the ALL_ATTRIBUTES dict for quick lookups
380380
ALL_EVENTS[cls.cluster_id][cls.event_id] = cls
381381
except NotImplementedError:

0 commit comments

Comments
 (0)