diff --git a/custom_components/sigmesh_gateway/config_flow.py b/custom_components/sigmesh_gateway/config_flow.py index ae55ce8..994dae2 100644 --- a/custom_components/sigmesh_gateway/config_flow.py +++ b/custom_components/sigmesh_gateway/config_flow.py @@ -2,6 +2,7 @@ from __future__ import annotations +import logging from typing import Any import voluptuous as vol @@ -29,6 +30,8 @@ from .const import ( PROV_TIMEOUT, ) +_LOGGER = logging.getLogger(__name__) + def _get_serial_ports() -> list: """获取可用串口列表(在同步线程中执行)."""