@@ -174,7 +174,7 @@ def __rich_repr__(self):
174
174
class DeviceProxyWrapper ():
175
175
''' Encapsulates a pointer to OperationalDeviceProxy on the c++ side that needs to be
176
176
freed when DeviceProxyWrapper goes out of scope. There is a potential issue where
177
- if this is copied around that a double free will occure , but how this is used today
177
+ if this is copied around that a double free will occur , but how this is used today
178
178
that is not an issue that needs to be accounted for and it will become very apparent
179
179
if that happens.
180
180
'''
@@ -923,15 +923,15 @@ async def SendCommand(self, nodeid: int, endpoint: int, payload: ClusterObjects.
923
923
suppressResponse : typing .Union [None , bool ] = None ):
924
924
'''
925
925
Send a cluster-object encapsulated command to a node and get returned a future that can be awaited upon to receive
926
- the response. If a valid responseType is passed in, that will be used to deserialize the object. If not,
926
+ the response. If a valid responseType is passed in, that will be used to de-serialize the object. If not,
927
927
the type will be automatically deduced from the metadata received over the wire.
928
928
929
929
timedWriteTimeoutMs: Timeout for a timed invoke request. Omit or set to 'None' to indicate a non-timed request.
930
930
interactionTimeoutMs: Overall timeout for the interaction. Omit or set to 'None' to have the SDK automatically compute the
931
931
right timeout value based on transport characteristics as well as the responsiveness of the target.
932
932
933
933
Returns:
934
- - command respone . The type of the response is defined by the command.
934
+ - command response . The type of the response is defined by the command.
935
935
Raises:
936
936
- InteractionModelError on error
937
937
'''
@@ -956,7 +956,7 @@ async def SendBatchCommands(self, nodeid: int, commands: typing.List[ClusterComm
956
956
suppressResponse : typing .Optional [bool ] = None ):
957
957
'''
958
958
Send a batch of cluster-object encapsulated commands to a node and get returned a future that can be awaited upon to receive
959
- the responses. If a valid responseType is passed in, that will be used to deserialize the object. If not,
959
+ the responses. If a valid responseType is passed in, that will be used to de-serialize the object. If not,
960
960
the type will be automatically deduced from the metadata received over the wire.
961
961
962
962
nodeId: Target's Node ID
@@ -1024,7 +1024,7 @@ async def WriteAttribute(self, nodeid: int,
1024
1024
to the XYZ attribute on the test cluster to endpoint 1
1025
1025
1026
1026
Returns:
1027
- - [AttributeStatus] (list - one for each pth )
1027
+ - [AttributeStatus] (list - one for each path )
1028
1028
'''
1029
1029
self .CheckIsActive ()
1030
1030
@@ -1321,17 +1321,17 @@ async def ReadAttribute(self, nodeid: int, attributes: typing.List[typing.Union[
1321
1321
To get notified on attribute change use SetAttributeUpdateCallback on the returned
1322
1322
SubscriptionTransaction. This is used to set a callback function, which is a callable of
1323
1323
type Callable[[TypedAttributePath, SubscriptionTransaction], None]
1324
- Get the attribute value from the change path using GetAttribute on the SubscriptionTransasction
1324
+ Get the attribute value from the change path using GetAttribute on the SubscriptionTransaction
1325
1325
You can await changes in the main loop using a trigger mechanism from the callback.
1326
1326
ex. queue.SimpleQueue
1327
1327
1328
- - read request: AsyncReadTransation .ReadResponse.attributes.
1328
+ - read request: AsyncReadTransaction .ReadResponse.attributes.
1329
1329
This is of type AttributeCache.attributeCache (Attribute.py),
1330
1330
which is a dict mapping endpoints to a list of Cluster (ClusterObjects.py) classes
1331
1331
(dict[int, List[Cluster]])
1332
- Access as ret [endpoint_id][<Cluster class>][<Attribute class>]
1333
- Ex. To access the OnTime attribute from the OnOff cluster on EP 1
1334
- ret [1][Clusters.OnOff][Clusters.OnOff.Attributes.OnTime]
1332
+ Access as returned_object [endpoint_id][<Cluster class>][<Attribute class>]
1333
+ Ex. To access the OnTime attribute from the OnOff cluster on endpoint 1
1334
+ returned_object [1][Clusters.OnOff][Clusters.OnOff.Attributes.OnTime]
1335
1335
1336
1336
Raises:
1337
1337
- InteractionModelError (chip.interaction_model) on error
@@ -1399,7 +1399,7 @@ async def ReadEvent(self, nodeid: int, events: typing.List[typing.Union[
1399
1399
Callable[[EventReadResult, SubscriptionTransaction], None]
1400
1400
You can await events using a trigger mechanism in the callback. ex. queue.SimpleQueue
1401
1401
1402
- - read request: AsyncReadTransation .ReadResponse.events.
1402
+ - read request: AsyncReadTransaction .ReadResponse.events.
1403
1403
This is a List[ClusterEvent].
1404
1404
1405
1405
Raises:
@@ -1878,7 +1878,7 @@ def SetDefaultNTP(self, defaultNTP: str):
1878
1878
).raise_on_error ()
1879
1879
1880
1880
def SetTrustedTimeSource (self , nodeId : int , endpoint : int ):
1881
- ''' Set the trusetd time source nodeId to set during commissioning. This must be a node on the commissioner fabric.'''
1881
+ ''' Set the trusted time source nodeId to set during commissioning. This must be a node on the commissioner fabric.'''
1882
1882
self .CheckIsActive ()
1883
1883
self ._ChipStack .Call (
1884
1884
lambda : self ._dmLib .pychip_DeviceController_SetTrustedTimeSource (nodeId , endpoint )
@@ -1993,7 +1993,7 @@ class BareChipDeviceController(ChipDeviceControllerBase):
1993
1993
1994
1994
def __init__ (self , operationalKey : p256keypair .P256Keypair , noc : bytes ,
1995
1995
icac : typing .Union [bytes , None ], rcac : bytes , ipk : typing .Union [bytes , None ], adminVendorId : int , name : str = None ):
1996
- '''Creates a controller without autocommissioner .
1996
+ '''Creates a controller without AutoCommissioner .
1997
1997
1998
1998
The allocated controller uses the noc, icac, rcac and ipk instead of the default,
1999
1999
random generated certificates / keys. Which is suitable for creating a controller
0 commit comments