File tree Expand file tree Collapse file tree 2 files changed +9
-8
lines changed
Expand file tree Collapse file tree 2 files changed +9
-8
lines changed Original file line number Diff line number Diff line change @@ -303,15 +303,16 @@ hub.
303303
304304 YKUSHPowerPort :
305305 serial : ' YK12345'
306- index : 1
306+ index : ' 1 '
307307
308308 The example describes port 1 on the YKUSH USB hub with the
309309serial ``YK12345 ``.
310310Use ``ykushcmd -l `` to get your serial number.
311311
312312Arguments:
313313 - serial (str): serial number of the YKUSH hub
314- - index (int): number of the port to switch
314+ - index (str): number of the port to switch, use ``a `` to control the whole hub as one logical
315+ port
315316
316317Used by:
317318 - `YKUSHPowerDriver `_
Original file line number Diff line number Diff line change @@ -11,10 +11,10 @@ class YKUSHPowerPort(Resource):
1111
1212 Args:
1313 serial (str): serial of the YKUSH device
14- index (int ): port index"""
14+ index (str ): port index"""
1515 serial = attr .ib (validator = attr .validators .instance_of (str ))
16- index = attr .ib (validator = attr .validators .instance_of (int ),
17- converter = int )
16+ index = attr .ib (validator = attr .validators .instance_of (str ),
17+ converter = str )
1818
1919@target_factory .reg_resource
2020@attr .s (eq = False )
@@ -23,7 +23,7 @@ class NetworkYKUSHPowerPort(NetworkResource):
2323
2424 Args:
2525 serial (str): serial of the YKUSH device
26- index (int ): port index"""
26+ index (str ): port index"""
2727 serial = attr .ib (validator = attr .validators .instance_of (str ))
28- index = attr .ib (validator = attr .validators .instance_of (int ),
29- converter = int )
28+ index = attr .ib (validator = attr .validators .instance_of (str ),
29+ converter = str )
You can’t perform that action at this time.
0 commit comments