Skip to content

Commit 65ee464

Browse files
committed
chore: fix lint errors
1 parent 711eda8 commit 65ee464

File tree

4 files changed

+8
-4
lines changed

4 files changed

+8
-4
lines changed

test.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ async def main():
8080
await app.startup(auto_form=False)
8181
await app.form_network()
8282

83-
#await app.permit_ncp()
83+
# await app.permit_ncp()
8484

8585

8686
loop.run_until_complete(main())

zigpy_cc/types.py

+1
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ class LedMode(uint8_t, enum.Enum):
2424
Flash = 3
2525
Toggle = 4
2626

27+
2728
class ZnpVersion(uint8_t, enum.Enum):
2829
zStack12 = 0
2930
zStack3x0 = 1

zigpy_cc/uart.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,14 @@
2121
MinMessageLength = 5
2222
MaxDataSize = 250
2323

24-
''''
24+
"""
2525
0451: Texas Instruments
2626
1a86:7523 QinHeng Electronics HL-340 USB-Serial adapter
2727
used in zzh - https://electrolama.com/projects/zig-a-zig-ah/
28-
'''
28+
"""
2929
usb_regexp = "0451:|1a86:7523"
3030

31+
3132
class Parser:
3233
def __init__(self) -> None:
3334
self.buffer = b""

zigpy_cc/zigbee/application.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -357,7 +357,9 @@ def set_led(self, mode: LedMode):
357357
try:
358358
loop = asyncio.get_event_loop()
359359
loop.create_task(
360-
self._api.request(Subsystem.UTIL, "ledControl", {"ledid": 3, "mode": mode})
360+
self._api.request(
361+
Subsystem.UTIL, "ledControl", {"ledid": 3, "mode": mode}
362+
)
361363
)
362364
except Exception as ex:
363365
LOGGER.warning("Can't set LED: %s", ex)

0 commit comments

Comments
 (0)