Skip to content

Commit

Permalink
fix CI
Browse files Browse the repository at this point in the history
  • Loading branch information
tianfeng-yang committed May 30, 2023
1 parent 779a84d commit b8a6375
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
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 @@ -229,7 +229,6 @@ def __str__(self) -> str:
class AttributeStatus:
Path: AttributePath
Status: Union[chip.interaction_model.Status, int]
DataVersion: int


@dataclass
Expand Down Expand Up @@ -267,6 +266,7 @@ class AttributeWriteRequest(AttributeDescriptorWithEndpoint):
@dataclass
class AttributeReadResult(AttributeStatus):
Data: Any = None
DataVersion: int = 0


@dataclass
Expand Down
3 changes: 2 additions & 1 deletion src/test_driver/openiotsdk/integration-tests/common/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,8 @@ def read_zcl_attribute(devCtrl, cluster: str, attribute: str, nodeId: int, endpo
EndpointId=endpoint, Attribute=attributeObj)

res = IM.AttributeReadResult(path=IM.AttributePath(nodeId=nodeId, endpointId=path.EndpointId, clusterId=path.ClusterId,
attributeId=path.AttributeId), status=0, value=result[endpoint][clusterObj][attributeObj])
attributeId=path.AttributeId), status=0, value=result[endpoint][clusterObj][attributeObj],
dataVersion=result[endpoint][clusterObj][ClusterAttribute.DataVersion])

except exceptions.ChipStackException as ex:
log.error("An exception occurred during processing ZCL attribute: {}".format(str(ex)))
Expand Down

0 comments on commit b8a6375

Please sign in to comment.