From cafc6ca89511bd0a576b618216415f8068c1133e Mon Sep 17 00:00:00 2001 From: Rami Mosleh Date: Fri, 12 Aug 2022 12:42:42 +0300 Subject: [PATCH] Fix typing in `glances` config flow (#76654) fix typing in config_flow --- homeassistant/components/glances/config_flow.py | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/homeassistant/components/glances/config_flow.py b/homeassistant/components/glances/config_flow.py index 16c33182c25..568586f177b 100644 --- a/homeassistant/components/glances/config_flow.py +++ b/homeassistant/components/glances/config_flow.py @@ -17,9 +17,9 @@ from homeassistant.const import ( CONF_VERIFY_SSL, ) from homeassistant.core import callback +from homeassistant.data_entry_flow import FlowResult from . import get_api -from ...data_entry_flow import FlowResult from .const import ( CONF_VERSION, DEFAULT_HOST, @@ -67,7 +67,9 @@ class GlancesFlowHandler(config_entries.ConfigFlow, domain=DOMAIN): """Get the options flow for this handler.""" return GlancesOptionsFlowHandler(config_entry) - async def async_step_user(self, user_input: dict[str, Any] = None) -> FlowResult: + async def async_step_user( + self, user_input: dict[str, Any] | None = None + ) -> FlowResult: """Handle the initial step.""" errors = {} if user_input is not None: @@ -94,7 +96,9 @@ class GlancesOptionsFlowHandler(config_entries.OptionsFlow): """Initialize Glances options flow.""" self.config_entry = config_entry - async def async_step_init(self, user_input: dict[str, Any] = None) -> FlowResult: + async def async_step_init( + self, user_input: dict[str, Any] | None = None + ) -> FlowResult: """Manage the Glances options.""" if user_input is not None: return self.async_create_entry(title="", data=user_input)