Skip to content

Commit fe0ccec

Browse files
committed
doc/configuration: update NetworkPowerPort
- Document that 'index' is now optional - Change 'tplink' section to indicate it controls both smart plugs and power strips Signed-off-by: Trevor Gamblin <[email protected]>
1 parent a01c9fb commit fe0ccec

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

doc/configuration.rst

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,8 @@ The example describes port 0 on the remote power switch
146146
Arguments:
147147
- model (str): model of the power switch
148148
- host (str): hostname of the power switch
149-
- index (int): number of the port to switch
149+
- index (int, default=0): optional, number of the port to switch. This
150+
can be omitted if the device only has a single output.
150151

151152
The ``model`` property selects one of several `backend implementations
152153
<https://github.com/labgrid-project/labgrid/tree/master/labgrid/driver/power>`_.
@@ -259,7 +260,7 @@ Currently available are:
259260
See the `documentation <https://docs.tinycontrol.pl/en/tcpdu/api/commands/>`__
260261

261262
``tplink``
262-
Controls *TP-Link power strips* via `python-kasa
263+
Controls *TP-Link smart plugs and power strips* via `python-kasa
263264
<https://github.com/python-kasa/python-kasa>`_.
264265

265266
``ubus``

0 commit comments

Comments
 (0)