Use Mapping for async_step_reauth (t-z) (#72767)

* Adjust tailscale

* Adjust tautulli

* Adjust tile

* Adjust tractive

* Adjust trafikverket_ferry

* Adjust trafikverket_train

* Adjust unifiprotect

* Adjust uptimerobot

* Adjust verisure

* Adjust vlc_telnet

* Adjust wallbox

* Adjust watttime

* Adjust yale_smart_alarm
This commit is contained in:
epenet 2022-05-31 22:44:06 +02:00 committed by GitHub
parent 84779482b8
commit 9cea936c22
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
13 changed files with 26 additions and 23 deletions

View file

@ -1,6 +1,7 @@
"""Config flow for Wallbox integration."""
from __future__ import annotations
from collections.abc import Mapping
from typing import Any
import voluptuous as vol
@ -47,9 +48,7 @@ class ConfigFlow(config_entries.ConfigFlow, domain=COMPONENT_DOMAIN):
"""Start the Wallbox config flow."""
self._reauth_entry: config_entries.ConfigEntry | None = None
async def async_step_reauth(
self, user_input: dict[str, Any] | None = None
) -> FlowResult:
async def async_step_reauth(self, data: Mapping[str, Any]) -> FlowResult:
"""Perform reauth upon an API authentication error."""
self._reauth_entry = self.hass.config_entries.async_get_entry(
self.context["entry_id"]