Skip to content

Commit

Permalink
Handle untyped attribute path
Browse files Browse the repository at this point in the history
  • Loading branch information
agners committed Jan 31, 2024
1 parent 5940dad commit 1124720
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/controller/python/chip/yaml/runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -377,7 +377,10 @@ def __init__(self, name: str, expected_attribute: ClusterObjects.ClusterAttribut
self._expected_attribute = expected_attribute
self._output_queue = output_queue

def __call__(self, path: TypedAttributePath, transaction: SubscriptionTransaction):
def __call__(self, path: Union[TypedAttributePath, AttributePath], transaction: SubscriptionTransaction):
# We are not interested in untyped (e.g. vendor specific) attributes
if not isinstance(path, TypedAttributePath):
return
if path.AttributeType == self._expected_attribute:
data = transaction.GetAttribute(path)
result = _ActionResult(status=_ActionStatus.SUCCESS, response=path.AttributeType(data))
Expand Down

0 comments on commit 1124720

Please sign in to comment.