Skip to content

Commit

Permalink
Set urgent before early returns
Browse files Browse the repository at this point in the history
  • Loading branch information
cecille committed Aug 22, 2023
1 parent 270d8e2 commit d1d4714
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/controller/python/chip/clusters/Attribute.py
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,7 @@ class EventPath:

def __init__(self, EndpointId: int = None, Cluster=None, Event=None, ClusterId=None, EventId=None, Urgent=None):
self.EndpointId = EndpointId
self.Urgent = Urgent
if Cluster is not None:
# Wildcard read for a specific cluster
if (Event is not None) or (ClusterId is not None) or (EventId is not None):
Expand All @@ -189,7 +190,6 @@ def __init__(self, EndpointId: int = None, Cluster=None, Event=None, ClusterId=N
return
self.ClusterId = ClusterId
self.EventId = EventId
self.Urgent = Urgent

def __str__(self) -> str:
return f"{self.EndpointId}/{self.ClusterId}/{self.EventId}/{self.Urgent}"
Expand Down

0 comments on commit d1d4714

Please sign in to comment.