Use Mapping for async_step_reauth (a-e) (#72763)

* Adjust abode

* Adjust airvisual

* Adjust aladdin_connect

* Adjust ambee

* Adjust aussie-broadband

* Adjust brunt

* Adjust cloudflare

* Adjust deconz

* Adjust deluge

* Adjust devolo_home_control

* Adjust efergy

* Adjust esphome
This commit is contained in:
epenet 2022-06-20 09:08:11 +02:00 committed by GitHub
parent 1f4add0119
commit bd29b91867
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
12 changed files with 29 additions and 20 deletions

View file

@ -1,6 +1,7 @@
"""Config flow for Aladdin Connect cover integration."""
from __future__ import annotations
from collections.abc import Mapping
import logging
from typing import Any
@ -44,9 +45,7 @@ class ConfigFlow(config_entries.ConfigFlow, domain=DOMAIN):
VERSION = 1
entry: config_entries.ConfigEntry | 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:
"""Handle re-authentication with Aladdin Connect."""
self.entry = self.hass.config_entries.async_get_entry(self.context["entry_id"])