We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f63dfd7 commit b895534Copy full SHA for b895534
labgrid/driver/power/shelly_gen2.py
@@ -27,4 +27,4 @@ def power_get(host: str, port: int, index: int = 0):
27
payload = {"id": 1, "method": "Switch.GetStatus", "params": {"id": index}}
28
r = requests.post(f"{host}/rpc", json=payload)
29
r.raise_for_status()
30
- return r.json()["output"]
+ return r.json()["result"]["output"]
0 commit comments