Skip to content

Commit 4b8a0d2

Browse files
committed
river/power/gude8031: Apply ruff format
Signed-off-by: Chris Fiege <[email protected]>
1 parent 1ce0abb commit 4b8a0d2

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

labgrid/driver/power/gude8031.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -14,16 +14,16 @@
1414

1515
PORT = 80
1616

17+
1718
def power_set(host, port, index, value):
1819
index = int(index)
1920
assert 1 <= index <= 8
2021
# access the web interface...
2122
value = 1 if value else 0
22-
r = requests.get(
23-
f"http://{host}:{port}/status.json?components=0&cmd=1&p={index}&s={value}"
24-
)
23+
r = requests.get(f"http://{host}:{port}/status.json?components=0&cmd=1&p={index}&s={value}")
2524
r.raise_for_status()
2625

26+
2727
def power_get(host, port, index):
2828
index = int(index)
2929
assert 1 <= index <= 8
@@ -32,6 +32,6 @@ def power_get(host, port, index):
3232
r = requests.get(f"http://{host}:{port}/status.json?components=1")
3333
r.raise_for_status()
3434

35-
state = r.json()['outputs'][index - 1]['state']
35+
state = r.json()["outputs"][index - 1]["state"]
3636

3737
return state

0 commit comments

Comments
 (0)