Skip to content

Commit 7d3f430

Browse files
committed
Resolving further mypy issues in ChipDeviceCtrl python3 module
1 parent d10727e commit 7d3f430

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

src/controller/python/matter/ChipDeviceCtrl.py

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1778,7 +1778,10 @@ def SendGroupCommand(self, groupid: int, payload: ClusterObjects.ClusterCommand,
17781778
return None
17791779

17801780
async def WriteAttribute(self, nodeId: int,
1781-
attributes: typing.List[typing.Tuple[int, ClusterObjects.ClusterAttributeDescriptor]],
1781+
attributes: typing.List[typing.Union[
1782+
typing.Tuple[int, ClusterObjects.ClusterAttributeDescriptor],
1783+
typing.Tuple[int, ClusterObjects.ClusterAttributeDescriptor, int]
1784+
]],
17821785
timedRequestTimeoutMs: typing.Optional[int] = None,
17831786
interactionTimeoutMs: typing.Optional[int] = None, busyWaitMs: typing.Optional[int] = None,
17841787
payloadCapability: int = TransportPayloadCapability.MRP_PAYLOAD):
@@ -1833,7 +1836,10 @@ async def _WriteAttribute(self, nodeId: int,
18331836
return await future
18341837

18351838
async def TestOnlyWriteAttributeWithLegacyList(self, nodeId: int,
1836-
attributes: typing.List[typing.Tuple[int, ClusterObjects.ClusterAttributeDescriptor]],
1839+
attributes: typing.List[typing.Union[
1840+
typing.Tuple[int, ClusterObjects.ClusterAttributeDescriptor],
1841+
typing.Tuple[int, ClusterObjects.ClusterAttributeDescriptor, int]
1842+
]],
18371843
timedRequestTimeoutMs: typing.Optional[int] = None,
18381844
interactionTimeoutMs: typing.Optional[int] = None, busyWaitMs: typing.Optional[int] = None,
18391845
payloadCapability: int = TransportPayloadCapability.MRP_PAYLOAD):

0 commit comments

Comments
 (0)