mirror of
https://github.com/home-assistant/core.git
synced 2025-07-22 20:57:21 +00:00
Align async_step_reconfigure type hints (#127450)
This commit is contained in:
parent
41fcf58b80
commit
c7739a7760
@ -2,7 +2,6 @@
|
|||||||
|
|
||||||
from __future__ import annotations
|
from __future__ import annotations
|
||||||
|
|
||||||
from collections.abc import Mapping
|
|
||||||
from typing import Any
|
from typing import Any
|
||||||
|
|
||||||
from brother import Brother, SnmpError, UnsupportedModelError
|
from brother import Brother, SnmpError, UnsupportedModelError
|
||||||
@ -143,7 +142,7 @@ class BrotherConfigFlow(ConfigFlow, domain=DOMAIN):
|
|||||||
)
|
)
|
||||||
|
|
||||||
async def async_step_reconfigure(
|
async def async_step_reconfigure(
|
||||||
self, entry_data: Mapping[str, Any]
|
self, user_input: dict[str, Any] | None = None
|
||||||
) -> ConfigFlowResult:
|
) -> ConfigFlowResult:
|
||||||
"""Handle a reconfiguration flow initialized by the user."""
|
"""Handle a reconfiguration flow initialized by the user."""
|
||||||
self.entry = self._get_reconfigure_entry()
|
self.entry = self._get_reconfigure_entry()
|
||||||
|
@ -2,7 +2,6 @@
|
|||||||
|
|
||||||
from __future__ import annotations
|
from __future__ import annotations
|
||||||
|
|
||||||
from collections.abc import Mapping
|
|
||||||
import logging
|
import logging
|
||||||
from typing import Any
|
from typing import Any
|
||||||
|
|
||||||
@ -62,7 +61,7 @@ class BryantConfigFlow(ConfigFlow, domain=DOMAIN):
|
|||||||
)
|
)
|
||||||
|
|
||||||
async def async_step_reconfigure(
|
async def async_step_reconfigure(
|
||||||
self, entry_data: Mapping[str, Any]
|
self, user_input: dict[str, Any] | None = None
|
||||||
) -> ConfigFlowResult:
|
) -> ConfigFlowResult:
|
||||||
"""Handle integration reconfiguration."""
|
"""Handle integration reconfiguration."""
|
||||||
return await self.async_step_reconfigure_confirm()
|
return await self.async_step_reconfigure_confirm()
|
||||||
|
@ -233,7 +233,7 @@ class EnphaseConfigFlow(ConfigFlow, domain=DOMAIN):
|
|||||||
)
|
)
|
||||||
|
|
||||||
async def async_step_reconfigure(
|
async def async_step_reconfigure(
|
||||||
self, entry_data: Mapping[str, Any]
|
self, user_input: dict[str, Any] | None = None
|
||||||
) -> ConfigFlowResult:
|
) -> ConfigFlowResult:
|
||||||
"""Add reconfigure step to allow to manually reconfigure a config entry."""
|
"""Add reconfigure step to allow to manually reconfigure a config entry."""
|
||||||
self._reconnect_entry = self._get_reconfigure_entry()
|
self._reconnect_entry = self._get_reconfigure_entry()
|
||||||
|
@ -2,7 +2,6 @@
|
|||||||
|
|
||||||
from __future__ import annotations
|
from __future__ import annotations
|
||||||
|
|
||||||
from collections.abc import Mapping
|
|
||||||
import logging
|
import logging
|
||||||
from typing import Any
|
from typing import Any
|
||||||
import urllib.error
|
import urllib.error
|
||||||
@ -122,7 +121,7 @@ class FeedReaderConfigFlow(ConfigFlow, domain=DOMAIN):
|
|||||||
return await self.async_step_user({CONF_URL: import_data[CONF_URL]})
|
return await self.async_step_user({CONF_URL: import_data[CONF_URL]})
|
||||||
|
|
||||||
async def async_step_reconfigure(
|
async def async_step_reconfigure(
|
||||||
self, entry_data: Mapping[str, Any]
|
self, user_input: dict[str, Any] | None = None
|
||||||
) -> ConfigFlowResult:
|
) -> ConfigFlowResult:
|
||||||
"""Handle a reconfiguration flow initialized by the user."""
|
"""Handle a reconfiguration flow initialized by the user."""
|
||||||
self._config_entry = self._get_reconfigure_entry()
|
self._config_entry = self._get_reconfigure_entry()
|
||||||
|
@ -336,7 +336,7 @@ class FritzBoxToolsFlowHandler(ConfigFlow, domain=DOMAIN):
|
|||||||
return self.async_abort(reason="reauth_successful")
|
return self.async_abort(reason="reauth_successful")
|
||||||
|
|
||||||
async def async_step_reconfigure(
|
async def async_step_reconfigure(
|
||||||
self, entry_data: Mapping[str, Any]
|
self, user_input: dict[str, Any] | None = None
|
||||||
) -> ConfigFlowResult:
|
) -> ConfigFlowResult:
|
||||||
"""Handle reconfigure flow ."""
|
"""Handle reconfigure flow ."""
|
||||||
self._entry = self._get_reconfigure_entry()
|
self._entry = self._get_reconfigure_entry()
|
||||||
|
@ -223,7 +223,7 @@ class FritzboxConfigFlow(ConfigFlow, domain=DOMAIN):
|
|||||||
)
|
)
|
||||||
|
|
||||||
async def async_step_reconfigure(
|
async def async_step_reconfigure(
|
||||||
self, entry_data: Mapping[str, Any]
|
self, user_input: dict[str, Any] | None = None
|
||||||
) -> ConfigFlowResult:
|
) -> ConfigFlowResult:
|
||||||
"""Handle a reconfiguration flow initialized by the user."""
|
"""Handle a reconfiguration flow initialized by the user."""
|
||||||
self._entry = self._get_reconfigure_entry()
|
self._entry = self._get_reconfigure_entry()
|
||||||
|
@ -2,7 +2,6 @@
|
|||||||
|
|
||||||
from __future__ import annotations
|
from __future__ import annotations
|
||||||
|
|
||||||
from collections.abc import Mapping
|
|
||||||
from typing import Any
|
from typing import Any
|
||||||
|
|
||||||
import voluptuous as vol
|
import voluptuous as vol
|
||||||
@ -238,7 +237,7 @@ class GoogleTravelTimeConfigFlow(ConfigFlow, domain=DOMAIN):
|
|||||||
)
|
)
|
||||||
|
|
||||||
async def async_step_reconfigure(
|
async def async_step_reconfigure(
|
||||||
self, entry_data: Mapping[str, Any]
|
self, user_input: dict[str, Any] | None = None
|
||||||
) -> ConfigFlowResult:
|
) -> ConfigFlowResult:
|
||||||
"""Handle reconfiguration."""
|
"""Handle reconfiguration."""
|
||||||
self._context_entry = self._get_reconfigure_entry()
|
self._context_entry = self._get_reconfigure_entry()
|
||||||
|
@ -2,7 +2,6 @@
|
|||||||
|
|
||||||
from __future__ import annotations
|
from __future__ import annotations
|
||||||
|
|
||||||
from collections.abc import Mapping
|
|
||||||
from typing import Any
|
from typing import Any
|
||||||
|
|
||||||
from babel import Locale, UnknownLocaleError
|
from babel import Locale, UnknownLocaleError
|
||||||
@ -113,7 +112,7 @@ class HolidayConfigFlow(ConfigFlow, domain=DOMAIN):
|
|||||||
return self.async_show_form(step_id="province", data_schema=province_schema)
|
return self.async_show_form(step_id="province", data_schema=province_schema)
|
||||||
|
|
||||||
async def async_step_reconfigure(
|
async def async_step_reconfigure(
|
||||||
self, entry_data: Mapping[str, Any]
|
self, user_input: dict[str, Any] | None = None
|
||||||
) -> ConfigFlowResult:
|
) -> ConfigFlowResult:
|
||||||
"""Handle the re-configuration of a province."""
|
"""Handle the re-configuration of a province."""
|
||||||
self.config_entry = self._get_reconfigure_entry()
|
self.config_entry = self._get_reconfigure_entry()
|
||||||
|
@ -2,7 +2,6 @@
|
|||||||
|
|
||||||
from __future__ import annotations
|
from __future__ import annotations
|
||||||
|
|
||||||
from collections.abc import Mapping
|
|
||||||
from functools import partial
|
from functools import partial
|
||||||
import logging
|
import logging
|
||||||
from typing import Any
|
from typing import Any
|
||||||
@ -583,7 +582,7 @@ class HomeworksConfigFlowHandler(ConfigFlow, domain=DOMAIN):
|
|||||||
return user_input
|
return user_input
|
||||||
|
|
||||||
async def async_step_reconfigure(
|
async def async_step_reconfigure(
|
||||||
self, entry_data: Mapping[str, Any]
|
self, user_input: dict[str, Any] | None = None
|
||||||
) -> ConfigFlowResult:
|
) -> ConfigFlowResult:
|
||||||
"""Handle a reconfigure flow."""
|
"""Handle a reconfigure flow."""
|
||||||
self._context_entry = self._get_reconfigure_entry()
|
self._context_entry = self._get_reconfigure_entry()
|
||||||
|
@ -2,7 +2,6 @@
|
|||||||
|
|
||||||
from __future__ import annotations
|
from __future__ import annotations
|
||||||
|
|
||||||
from collections.abc import Mapping
|
|
||||||
import logging
|
import logging
|
||||||
from typing import Any
|
from typing import Any
|
||||||
import zoneinfo
|
import zoneinfo
|
||||||
@ -131,7 +130,7 @@ class JewishCalendarConfigFlow(ConfigFlow, domain=DOMAIN):
|
|||||||
return await self.async_step_user(import_data)
|
return await self.async_step_user(import_data)
|
||||||
|
|
||||||
async def async_step_reconfigure(
|
async def async_step_reconfigure(
|
||||||
self, entry_data: Mapping[str, Any]
|
self, user_input: dict[str, Any] | None = None
|
||||||
) -> ConfigFlowResult:
|
) -> ConfigFlowResult:
|
||||||
"""Handle a reconfiguration flow initialized by the user."""
|
"""Handle a reconfiguration flow initialized by the user."""
|
||||||
self._config_entry = self._get_reconfigure_entry()
|
self._config_entry = self._get_reconfigure_entry()
|
||||||
|
@ -286,7 +286,7 @@ class LmConfigFlow(ConfigFlow, domain=DOMAIN):
|
|||||||
return await self.async_step_user(user_input)
|
return await self.async_step_user(user_input)
|
||||||
|
|
||||||
async def async_step_reconfigure(
|
async def async_step_reconfigure(
|
||||||
self, entry_data: Mapping[str, Any]
|
self, user_input: dict[str, Any] | None = None
|
||||||
) -> ConfigFlowResult:
|
) -> ConfigFlowResult:
|
||||||
"""Perform reconfiguration of the config entry."""
|
"""Perform reconfiguration of the config entry."""
|
||||||
self.reconfigure_entry = self._get_reconfigure_entry()
|
self.reconfigure_entry = self._get_reconfigure_entry()
|
||||||
|
@ -2,7 +2,6 @@
|
|||||||
|
|
||||||
from __future__ import annotations
|
from __future__ import annotations
|
||||||
|
|
||||||
from collections.abc import Mapping
|
|
||||||
import logging
|
import logging
|
||||||
from typing import Any
|
from typing import Any
|
||||||
|
|
||||||
@ -196,7 +195,7 @@ class LcnFlowHandler(config_entries.ConfigFlow, domain=DOMAIN):
|
|||||||
return self.async_create_entry(title=data[CONF_HOST], data=data)
|
return self.async_create_entry(title=data[CONF_HOST], data=data)
|
||||||
|
|
||||||
async def async_step_reconfigure(
|
async def async_step_reconfigure(
|
||||||
self, entry_data: Mapping[str, Any]
|
self, user_input: dict[str, Any] | None = None
|
||||||
) -> config_entries.ConfigFlowResult:
|
) -> config_entries.ConfigFlowResult:
|
||||||
"""Reconfigure LCN configuration."""
|
"""Reconfigure LCN configuration."""
|
||||||
self._context_entry = self._get_reconfigure_entry()
|
self._context_entry = self._get_reconfigure_entry()
|
||||||
|
@ -1,7 +1,6 @@
|
|||||||
"""Config flow for the integration."""
|
"""Config flow for the integration."""
|
||||||
|
|
||||||
import asyncio
|
import asyncio
|
||||||
from collections.abc import Mapping
|
|
||||||
import logging
|
import logging
|
||||||
from typing import Any
|
from typing import Any
|
||||||
|
|
||||||
@ -47,7 +46,7 @@ class MadVRConfigFlow(ConfigFlow, domain=DOMAIN):
|
|||||||
return await self._handle_config_step(user_input)
|
return await self._handle_config_step(user_input)
|
||||||
|
|
||||||
async def async_step_reconfigure(
|
async def async_step_reconfigure(
|
||||||
self, entry_data: Mapping[str, Any]
|
self, user_input: dict[str, Any] | None = None
|
||||||
) -> ConfigFlowResult:
|
) -> ConfigFlowResult:
|
||||||
"""Handle reconfiguration of the device."""
|
"""Handle reconfiguration of the device."""
|
||||||
self.entry = self._get_reconfigure_entry()
|
self.entry = self._get_reconfigure_entry()
|
||||||
|
@ -118,7 +118,7 @@ class MealieConfigFlow(ConfigFlow, domain=DOMAIN):
|
|||||||
)
|
)
|
||||||
|
|
||||||
async def async_step_reconfigure(
|
async def async_step_reconfigure(
|
||||||
self, entry_data: Mapping[str, Any]
|
self, user_input: dict[str, Any] | None = None
|
||||||
) -> ConfigFlowResult:
|
) -> ConfigFlowResult:
|
||||||
"""Handle reconfiguration of the integration."""
|
"""Handle reconfiguration of the integration."""
|
||||||
self.entry = self._get_reconfigure_entry()
|
self.entry = self._get_reconfigure_entry()
|
||||||
|
@ -149,7 +149,7 @@ class FlowHandler(ConfigFlow, domain=DOMAIN):
|
|||||||
return acquired_token, errors
|
return acquired_token, errors
|
||||||
|
|
||||||
async def async_step_reconfigure(
|
async def async_step_reconfigure(
|
||||||
self, entry_data: Mapping[str, Any]
|
self, user_input: dict[str, Any] | None = None
|
||||||
) -> ConfigFlowResult:
|
) -> ConfigFlowResult:
|
||||||
"""Handle a reconfiguration flow initialized by the user."""
|
"""Handle a reconfiguration flow initialized by the user."""
|
||||||
self.entry = self._get_reconfigure_entry()
|
self.entry = self._get_reconfigure_entry()
|
||||||
|
@ -223,7 +223,7 @@ class NAMFlowHandler(ConfigFlow, domain=DOMAIN):
|
|||||||
)
|
)
|
||||||
|
|
||||||
async def async_step_reconfigure(
|
async def async_step_reconfigure(
|
||||||
self, entry_data: Mapping[str, Any]
|
self, user_input: dict[str, Any] | None = None
|
||||||
) -> ConfigFlowResult:
|
) -> ConfigFlowResult:
|
||||||
"""Handle a reconfiguration flow initialized by the user."""
|
"""Handle a reconfiguration flow initialized by the user."""
|
||||||
self.entry = self._get_reconfigure_entry()
|
self.entry = self._get_reconfigure_entry()
|
||||||
|
@ -196,7 +196,7 @@ class PyLoadConfigFlow(ConfigFlow, domain=DOMAIN):
|
|||||||
)
|
)
|
||||||
|
|
||||||
async def async_step_reconfigure(
|
async def async_step_reconfigure(
|
||||||
self, entry_data: Mapping[str, Any]
|
self, user_input: dict[str, Any] | None = None
|
||||||
) -> ConfigFlowResult:
|
) -> ConfigFlowResult:
|
||||||
"""Perform a reconfiguration."""
|
"""Perform a reconfiguration."""
|
||||||
self.config_entry = self._get_reconfigure_entry()
|
self.config_entry = self._get_reconfigure_entry()
|
||||||
|
@ -136,7 +136,7 @@ class ReolinkFlowHandler(ConfigFlow, domain=DOMAIN):
|
|||||||
)
|
)
|
||||||
|
|
||||||
async def async_step_reconfigure(
|
async def async_step_reconfigure(
|
||||||
self, entry_data: Mapping[str, Any]
|
self, user_input: dict[str, Any] | None = None
|
||||||
) -> ConfigFlowResult:
|
) -> ConfigFlowResult:
|
||||||
"""Perform a reconfiguration."""
|
"""Perform a reconfiguration."""
|
||||||
config_entry = self.hass.config_entries.async_get_entry(
|
config_entry = self.hass.config_entries.async_get_entry(
|
||||||
|
@ -2,7 +2,6 @@
|
|||||||
|
|
||||||
from __future__ import annotations
|
from __future__ import annotations
|
||||||
|
|
||||||
from collections.abc import Mapping
|
|
||||||
from typing import Any
|
from typing import Any
|
||||||
|
|
||||||
from smhi.smhi_lib import Smhi, SmhiForecastException
|
from smhi.smhi_lib import Smhi, SmhiForecastException
|
||||||
@ -83,7 +82,7 @@ class SmhiFlowHandler(ConfigFlow, domain=DOMAIN):
|
|||||||
)
|
)
|
||||||
|
|
||||||
async def async_step_reconfigure(
|
async def async_step_reconfigure(
|
||||||
self, entry_data: Mapping[str, Any]
|
self, user_input: dict[str, Any] | None = None
|
||||||
) -> ConfigFlowResult:
|
) -> ConfigFlowResult:
|
||||||
"""Handle a reconfiguration flow initialized by the user."""
|
"""Handle a reconfiguration flow initialized by the user."""
|
||||||
self.config_entry = self._get_reconfigure_entry()
|
self.config_entry = self._get_reconfigure_entry()
|
||||||
|
@ -138,7 +138,7 @@ class SolarLogConfigFlow(ConfigFlow, domain=DOMAIN):
|
|||||||
)
|
)
|
||||||
|
|
||||||
async def async_step_reconfigure(
|
async def async_step_reconfigure(
|
||||||
self, entry_data: Mapping[str, Any]
|
self, user_input: dict[str, Any] | None = None
|
||||||
) -> ConfigFlowResult:
|
) -> ConfigFlowResult:
|
||||||
"""Handle a reconfiguration flow initialized by the user."""
|
"""Handle a reconfiguration flow initialized by the user."""
|
||||||
self._entry = self._get_reconfigure_entry()
|
self._entry = self._get_reconfigure_entry()
|
||||||
|
@ -2,7 +2,6 @@
|
|||||||
|
|
||||||
from __future__ import annotations
|
from __future__ import annotations
|
||||||
|
|
||||||
from collections.abc import Mapping
|
|
||||||
import logging
|
import logging
|
||||||
from typing import Any
|
from typing import Any
|
||||||
|
|
||||||
@ -118,7 +117,7 @@ class TadoConfigFlow(ConfigFlow, domain=DOMAIN):
|
|||||||
return await self.async_step_user()
|
return await self.async_step_user()
|
||||||
|
|
||||||
async def async_step_reconfigure(
|
async def async_step_reconfigure(
|
||||||
self, entry_data: Mapping[str, Any]
|
self, user_input: dict[str, Any] | None = None
|
||||||
) -> ConfigFlowResult:
|
) -> ConfigFlowResult:
|
||||||
"""Handle a reconfiguration flow initialized by the user."""
|
"""Handle a reconfiguration flow initialized by the user."""
|
||||||
self.config_entry = self._get_reconfigure_entry()
|
self.config_entry = self._get_reconfigure_entry()
|
||||||
|
@ -125,7 +125,7 @@ class TedeeConfigFlow(ConfigFlow, domain=DOMAIN):
|
|||||||
return await self.async_step_user(user_input)
|
return await self.async_step_user(user_input)
|
||||||
|
|
||||||
async def async_step_reconfigure(
|
async def async_step_reconfigure(
|
||||||
self, entry_data: Mapping[str, Any]
|
self, user_input: dict[str, Any] | None = None
|
||||||
) -> ConfigFlowResult:
|
) -> ConfigFlowResult:
|
||||||
"""Perform a reconfiguration."""
|
"""Perform a reconfiguration."""
|
||||||
self.reconfigure_entry = self._get_reconfigure_entry()
|
self.reconfigure_entry = self._get_reconfigure_entry()
|
||||||
|
@ -93,7 +93,7 @@ class TVCameraConfigFlow(ConfigFlow, domain=DOMAIN):
|
|||||||
)
|
)
|
||||||
|
|
||||||
async def async_step_reconfigure(
|
async def async_step_reconfigure(
|
||||||
self, entry_data: Mapping[str, Any]
|
self, user_input: dict[str, Any] | None = None
|
||||||
) -> ConfigFlowResult:
|
) -> ConfigFlowResult:
|
||||||
"""Handle re-configuration with Trafikverket."""
|
"""Handle re-configuration with Trafikverket."""
|
||||||
|
|
||||||
|
@ -119,7 +119,7 @@ class TVWeatherConfigFlow(ConfigFlow, domain=DOMAIN):
|
|||||||
)
|
)
|
||||||
|
|
||||||
async def async_step_reconfigure(
|
async def async_step_reconfigure(
|
||||||
self, entry_data: Mapping[str, Any]
|
self, user_input: dict[str, Any] | None = None
|
||||||
) -> ConfigFlowResult:
|
) -> ConfigFlowResult:
|
||||||
"""Handle re-configuration with Trafikverket."""
|
"""Handle re-configuration with Trafikverket."""
|
||||||
|
|
||||||
|
@ -2,7 +2,6 @@
|
|||||||
|
|
||||||
from __future__ import annotations
|
from __future__ import annotations
|
||||||
|
|
||||||
from collections.abc import Mapping
|
|
||||||
import logging
|
import logging
|
||||||
from typing import Any
|
from typing import Any
|
||||||
|
|
||||||
@ -86,7 +85,7 @@ class ValloxConfigFlow(ConfigFlow, domain=DOMAIN):
|
|||||||
)
|
)
|
||||||
|
|
||||||
async def async_step_reconfigure(
|
async def async_step_reconfigure(
|
||||||
self, entry_data: Mapping[str, Any]
|
self, user_input: dict[str, Any] | None = None
|
||||||
) -> ConfigFlowResult:
|
) -> ConfigFlowResult:
|
||||||
"""Handle reconfiguration of the Vallox device host address."""
|
"""Handle reconfiguration of the Vallox device host address."""
|
||||||
self._context_entry = self._get_reconfigure_entry()
|
self._context_entry = self._get_reconfigure_entry()
|
||||||
|
@ -2,7 +2,6 @@
|
|||||||
|
|
||||||
from __future__ import annotations
|
from __future__ import annotations
|
||||||
|
|
||||||
from collections.abc import Mapping
|
|
||||||
from typing import Any
|
from typing import Any
|
||||||
|
|
||||||
import voluptuous as vol
|
import voluptuous as vol
|
||||||
@ -192,7 +191,7 @@ class WazeConfigFlow(ConfigFlow, domain=DOMAIN):
|
|||||||
)
|
)
|
||||||
|
|
||||||
async def async_step_reconfigure(
|
async def async_step_reconfigure(
|
||||||
self, entry_data: Mapping[str, Any]
|
self, user_input: dict[str, Any] | None = None
|
||||||
) -> ConfigFlowResult:
|
) -> ConfigFlowResult:
|
||||||
"""Handle reconfiguration."""
|
"""Handle reconfiguration."""
|
||||||
self._entry = self._get_reconfigure_entry()
|
self._entry = self._get_reconfigure_entry()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user