Skip to content

Commit 4fb06a0

Browse files
committed
Fix to CI
1 parent 8f516cd commit 4fb06a0

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

examples/httpserver_url_parameters.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,10 @@
2424

2525

2626
class Device:
27-
def turn_on(self):
27+
def turn_on(self): # pylint: disable=no-self-use
2828
print("Turning on device.")
2929

30-
def turn_off(self):
30+
def turn_off(self): # pylint: disable=no-self-use
3131
print("Turning off device.")
3232

3333

@@ -40,14 +40,16 @@ def get_device(device_id: str) -> Device: # pylint: disable=unused-argument
4040

4141
@server.route("/device/<device_id>/action/<action>")
4242
@server.route("/device/emergency-power-off/<device_id>")
43-
def perform_action(request: HTTPRequest, device_id: str, action: str = "emergency_power_off"):
43+
def perform_action(
44+
request: HTTPRequest, device_id: str, action: str = "emergency_power_off"
45+
):
4446
"""
4547
Performs an "action" on a specified device.
4648
"""
4749

4850
device = get_device(device_id)
4951

50-
if action in ["turn_on",]:
52+
if action in ["turn_on"]:
5153
device.turn_on()
5254
elif action in ["turn_off", "emergency_power_off"]:
5355
device.turn_off()

0 commit comments

Comments
 (0)