diff --git a/labgrid/driver/power/shelly_gen2.py b/labgrid/driver/power/shelly_gen2.py index 012f2cc03..652eca806 100644 --- a/labgrid/driver/power/shelly_gen2.py +++ b/labgrid/driver/power/shelly_gen2.py @@ -27,4 +27,4 @@ def power_get(host: str, port: int, index: int = 0): payload = {"id": 1, "method": "Switch.GetStatus", "params": {"id": index}} r = requests.post(f"{host}/rpc", json=payload) r.raise_for_status() - return r.json()["output"] + return r.json()["result"]["output"]