Skip to content

Commit

Permalink
Run port discovery in thread (does anything use this?)
Browse files Browse the repository at this point in the history
  • Loading branch information
puddly committed Jul 5, 2024
1 parent 0e3e5ae commit d16e455
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion zigpy_zigate/uart.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ async def connect(device_config: Dict[str, Any], api, loop=None):

port = device_config[CONF_DEVICE_PATH]
if port == "auto":
port = c.discover_port()
port = await loop.run_in_executor(None, c.discover_port)

if c.is_pizigate(port):
LOGGER.debug("PiZiGate detected")
Expand Down

0 comments on commit d16e455

Please sign in to comment.