From 66616d997c088ea746fc8816569f0d9135f6e219 Mon Sep 17 00:00:00 2001 From: Ruben Horn <5367484+rubenhorn@users.noreply.github.com> Date: Fri, 19 Apr 2024 16:15:47 +0200 Subject: [PATCH] Update README.md Fixed `Netio.exceptions.UnknownOutputId: Invalid output ID` in example snippet --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 17216c7..5b21262 100644 --- a/README.md +++ b/README.md @@ -44,7 +44,7 @@ to set the output use either action, or integer value To read the states of the outputs ```pydocstring >>> for x in range(4): ->>> print(n.get_output(x)) +>>> print(n.get_output(x + 1)) Output(ID=1, Name='out_1', State=1, Action=1, Delay=500, Current=0, PowerFactor=0.0, Load=0, Energy=13346833) Output(ID=2, Name='out_2', State=0, Action=0, Delay=500, Current=0, PowerFactor=0.0, Load=0, Energy=2311032) Output(ID=3, Name='out_3', State=1, Action=1, Delay=500, Current=8610, PowerFactor=1.0, Load=2062, Energy=11387035) @@ -182,4 +182,4 @@ when supplying for example password, it's looked up in this order: 3. configuration file (if supplied) 1. special section 2. DEFAULT section - 4. Default value (if applicable) \ No newline at end of file + 4. Default value (if applicable)