Skip to content

Commit

Permalink
Typo in documentation, also change example EP (project-chip#30431)
Browse files Browse the repository at this point in the history
* Typo in documentatoin, also change example EP

* This is a list
  • Loading branch information
cecille authored Nov 13, 2023
1 parent 827dfac commit adc2933
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/controller/python/chip/ChipDeviceCtrl.py
Original file line number Diff line number Diff line change
Expand Up @@ -897,7 +897,7 @@ async def WriteAttribute(self, nodeid: int,
to the XYZ attribute on the test cluster to endpoint 1
Returns:
- PyChipError
- [PyChipError] (list - one for each pth)
'''
self.CheckIsActive()

Expand Down Expand Up @@ -1201,10 +1201,10 @@ async def ReadAttribute(self, nodeid: int, attributes: typing.List[typing.Union[
- read request: AsyncReadTransation.ReadResponse.attributes.
This is of type AttributeCache.attributeCache (Attribute.py),
which is a dict mapping endpoints to a list of Cluster (ClusterObjects.py) classes
(dict[int], List[Cluster])
(dict[int, List[Cluster]])
Access as ret[endpoint_id][<Cluster class>][<Attribute class>]
Ex. To access the OnTime attribute from the OnOff cluster on EP 0
ret[0][Clusters.OnOff][Clusters.OnOff.Attributes.OnTime]
Ex. To access the OnTime attribute from the OnOff cluster on EP 1
ret[1][Clusters.OnOff][Clusters.OnOff.Attributes.OnTime]
Raises:
- InteractionModelError (chip.interaction_model) on error
Expand Down

0 comments on commit adc2933

Please sign in to comment.