diff --git a/homeassistant/components/forked_daapd/config_flow.py b/homeassistant/components/forked_daapd/config_flow.py index 2440fc82943..7edf25a2595 100644 --- a/homeassistant/components/forked_daapd/config_flow.py +++ b/homeassistant/components/forked_daapd/config_flow.py @@ -111,7 +111,7 @@ class ForkedDaapdFlowHandler(ConfigFlow, domain=DOMAIN): def __init__(self) -> None: """Initialize.""" - self.discovery_schema = None + self.discovery_schema: vol.Schema | None = None @staticmethod @callback diff --git a/homeassistant/components/linear_garage_door/config_flow.py b/homeassistant/components/linear_garage_door/config_flow.py index dca2780cfea..d1dda97c513 100644 --- a/homeassistant/components/linear_garage_door/config_flow.py +++ b/homeassistant/components/linear_garage_door/config_flow.py @@ -75,9 +75,7 @@ class LinearGarageDoorConfigFlow(ConfigFlow, domain=DOMAIN): self, user_input: dict[str, Any] | None = None ) -> ConfigFlowResult: """Handle the initial step.""" - data_schema = STEP_USER_DATA_SCHEMA - - data_schema = vol.Schema(data_schema) + data_schema = vol.Schema(STEP_USER_DATA_SCHEMA) if user_input is None: return self.async_show_form(step_id="user", data_schema=data_schema) diff --git a/homeassistant/components/motion_blinds/config_flow.py b/homeassistant/components/motion_blinds/config_flow.py index c838825a4bd..131299314a2 100644 --- a/homeassistant/components/motion_blinds/config_flow.py +++ b/homeassistant/components/motion_blinds/config_flow.py @@ -75,7 +75,7 @@ class MotionBlindsFlowHandler(ConfigFlow, domain=DOMAIN): """Initialize the Motionblinds flow.""" self._host: str | None = None self._ips: list[str] = [] - self._config_settings = None + self._config_settings: vol.Schema | None = None @staticmethod @callback diff --git a/homeassistant/components/synology_dsm/config_flow.py b/homeassistant/components/synology_dsm/config_flow.py index 6e2b090fc98..d019361edad 100644 --- a/homeassistant/components/synology_dsm/config_flow.py +++ b/homeassistant/components/synology_dsm/config_flow.py @@ -138,7 +138,7 @@ class SynologyDSMFlowHandler(ConfigFlow, domain=DOMAIN): user_input = {} description_placeholders = {} - data_schema = {} + data_schema = None if step_id == "link": user_input.update(self.discovered_conf) diff --git a/homeassistant/components/vizio/config_flow.py b/homeassistant/components/vizio/config_flow.py index fb5f74f4e09..d8b99595f54 100644 --- a/homeassistant/components/vizio/config_flow.py +++ b/homeassistant/components/vizio/config_flow.py @@ -188,7 +188,7 @@ class VizioConfigFlow(ConfigFlow, domain=DOMAIN): def __init__(self) -> None: """Initialize config flow.""" - self._user_schema = None + self._user_schema: vol.Schema | None = None self._must_show_form: bool | None = None self._ch_type: str | None = None self._pairing_token: str | None = None diff --git a/homeassistant/components/zha/config_flow.py b/homeassistant/components/zha/config_flow.py index 037ad4192bd..9be27f7b37c 100644 --- a/homeassistant/components/zha/config_flow.py +++ b/homeassistant/components/zha/config_flow.py @@ -221,7 +221,7 @@ class BaseZhaFlow(ConfigEntryBaseFlow): return await self.async_step_verify_radio() # Pre-select the currently configured port - default_port = vol.UNDEFINED + default_port: vol.Undefined | str = vol.UNDEFINED if self._radio_mgr.device_path is not None: for description, port in zip(list_of_ports, ports, strict=False): @@ -251,7 +251,7 @@ class BaseZhaFlow(ConfigEntryBaseFlow): return await self.async_step_manual_port_config() # Pre-select the current radio type - default = vol.UNDEFINED + default: vol.Undefined | str = vol.UNDEFINED if self._radio_mgr.radio_type is not None: default = self._radio_mgr.radio_type.description