From 8677d1a500c4a5a82c3629052579a277ad64f521 Mon Sep 17 00:00:00 2001 From: C Freeman Date: Tue, 5 Dec 2023 14:54:09 -0500 Subject: [PATCH] ChipDeviceCtrl: Fix type & doc for WriteAttribute (#30824) I went one layer too low when I wrote the documentation for the return type. Also, the type hint for attributes is wrong - I think this was copied from events, which include urgency. But write does not have or need that. Documentation and normal useage match the new type hint. --- src/controller/python/chip/ChipDeviceCtrl.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/controller/python/chip/ChipDeviceCtrl.py b/src/controller/python/chip/ChipDeviceCtrl.py index 4db95205179a46..4a38348575eccf 100644 --- a/src/controller/python/chip/ChipDeviceCtrl.py +++ b/src/controller/python/chip/ChipDeviceCtrl.py @@ -880,7 +880,7 @@ def SendGroupCommand(self, groupid: int, payload: ClusterObjects.ClusterCommand, return None async def WriteAttribute(self, nodeid: int, - attributes: typing.List[typing.Tuple[int, ClusterObjects.ClusterAttributeDescriptor, int]], + attributes: typing.List[typing.Tuple[int, ClusterObjects.ClusterAttributeDescriptor]], timedRequestTimeoutMs: typing.Union[None, int] = None, interactionTimeoutMs: typing.Union[None, int] = None, busyWaitMs: typing.Union[None, int] = None): ''' @@ -897,7 +897,7 @@ async def WriteAttribute(self, nodeid: int, to the XYZ attribute on the test cluster to endpoint 1 Returns: - - [PyChipError] (list - one for each pth) + - [AttributeStatus] (list - one for each pth) ''' self.CheckIsActive()