fix: config_flow.py 缺少 _LOGGER 定义

添加 logging 导入和 _LOGGER 定义
This commit is contained in:
impressionyang 2026-04-16 17:33:32 +08:00
parent b61d99c2e0
commit e7a34282a3

View File

@ -2,6 +2,7 @@
from __future__ import annotations from __future__ import annotations
import logging
from typing import Any from typing import Any
import voluptuous as vol import voluptuous as vol
@ -29,6 +30,8 @@ from .const import (
PROV_TIMEOUT, PROV_TIMEOUT,
) )
_LOGGER = logging.getLogger(__name__)
def _get_serial_ports() -> list: def _get_serial_ports() -> list:
"""获取可用串口列表(在同步线程中执行).""" """获取可用串口列表(在同步线程中执行)."""