From 8b8731e7611e5b0684702cd7ed08527a281a3345 Mon Sep 17 00:00:00 2001 From: DamKas <48238600+DamKast@users.noreply.github.com> Date: Tue, 14 Nov 2023 14:18:24 +0100 Subject: [PATCH] change some log level for uart --- zigpy_zboss/uart.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/zigpy_zboss/uart.py b/zigpy_zboss/uart.py index 41af674..66e30db 100644 --- a/zigpy_zboss/uart.py +++ b/zigpy_zboss/uart.py @@ -275,7 +275,7 @@ async def connect(config: conf.ConfigType, api) -> ZbossNcpProtocol: baudrate = config[conf.CONF_DEVICE_BAUDRATE] flow_control = config[conf.CONF_DEVICE_FLOW_CONTROL] - LOGGER.info("Connecting to %s at %s baud", port, baudrate) + LOGGER.debug("Connecting to %s at %s baud", port, baudrate) _, protocol = await zigpy.serial.create_serial_connection( loop=loop, @@ -293,4 +293,6 @@ async def connect(config: conf.ConfigType, api) -> ZbossNcpProtocol: protocol.close() raise RuntimeError("Could not communicate with NCP!") + LOGGER.debug("Connected to %s at %s baud", port, baudrate) + return protocol