Use Mapping for async_step_reauth (f-o) (#72764)

This commit is contained in:
epenet 2022-06-02 14:17:09 +02:00 committed by GitHub
parent 14f47c7450
commit 756988fe20
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
10 changed files with 23 additions and 15 deletions

View file

@ -1,6 +1,7 @@
"""Config flow for laundrify integration."""
from __future__ import annotations
from collections.abc import Mapping
import logging
from typing import Any
@ -76,9 +77,7 @@ class LaundrifyConfigFlow(ConfigFlow, domain=DOMAIN):
step_id="init", data_schema=CONFIG_SCHEMA, errors=errors
)
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."""
return await self.async_step_reauth_confirm()