Skip to content

Commit

Permalink
chore: fix lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
sanyatuning committed May 13, 2020
1 parent 711eda8 commit 65ee464
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion test.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ async def main():
await app.startup(auto_form=False)
await app.form_network()

#await app.permit_ncp()
# await app.permit_ncp()


loop.run_until_complete(main())
Expand Down
1 change: 1 addition & 0 deletions zigpy_cc/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ class LedMode(uint8_t, enum.Enum):
Flash = 3
Toggle = 4


class ZnpVersion(uint8_t, enum.Enum):
zStack12 = 0
zStack3x0 = 1
Expand Down
5 changes: 3 additions & 2 deletions zigpy_cc/uart.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,14 @@
MinMessageLength = 5
MaxDataSize = 250

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


class Parser:
def __init__(self) -> None:
self.buffer = b""
Expand Down
4 changes: 3 additions & 1 deletion zigpy_cc/zigbee/application.py
Original file line number Diff line number Diff line change
Expand Up @@ -357,7 +357,9 @@ def set_led(self, mode: LedMode):
try:
loop = asyncio.get_event_loop()
loop.create_task(
self._api.request(Subsystem.UTIL, "ledControl", {"ledid": 3, "mode": mode})
self._api.request(
Subsystem.UTIL, "ledControl", {"ledid": 3, "mode": mode}
)
)
except Exception as ex:
LOGGER.warning("Can't set LED: %s", ex)
Expand Down

0 comments on commit 65ee464

Please sign in to comment.