diff --git a/custom_components/sigmesh_gateway/config_flow.py b/custom_components/sigmesh_gateway/config_flow.py index ebd78e7..26ab0dd 100644 --- a/custom_components/sigmesh_gateway/config_flow.py +++ b/custom_components/sigmesh_gateway/config_flow.py @@ -2,6 +2,8 @@ from __future__ import annotations +from typing import Any + import voluptuous as vol from homeassistant import config_entries from homeassistant.core import callback @@ -22,7 +24,7 @@ class SigMeshGatewayConfigFlow(config_entries.ConfigFlow, domain=DOMAIN): VERSION = 1 async def async_step_user( - self, user_input: dict[str, any] | None = None + self, user_input: dict[str, Any] | None = None ) -> FlowResult: """处理用户配置步骤.""" errors = {} @@ -79,7 +81,7 @@ class SigMeshGatewayOptionsFlow(config_entries.OptionsFlow): """初始化选项流程.""" self.config_entry = config_entry - async def async_step_init(self, user_input: dict[str, any] | None = None) -> FlowResult: + async def async_step_init(self, user_input: dict[str, Any] | None = None) -> FlowResult: """管理选项.""" if user_input is not None: return self.async_create_entry(title="", data=user_input)