From e7a34282a3a82b2c2f6bcbd273a56a454fa51376 Mon Sep 17 00:00:00 2001 From: impressionyang Date: Thu, 16 Apr 2026 17:33:32 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20config=5Fflow.py=20=E7=BC=BA=E5=B0=91=20?= =?UTF-8?q?=5FLOGGER=20=E5=AE=9A=E4=B9=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 添加 logging 导入和 _LOGGER 定义 --- custom_components/sigmesh_gateway/config_flow.py | 3 +++ 1 file changed, 3 insertions(+) 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: """获取可用串口列表(在同步线程中执行)."""