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

@ -2,6 +2,7 @@
from __future__ import annotations
import asyncio
from collections.abc import Mapping
from contextlib import suppress
import logging
from typing import Any
@ -142,7 +143,7 @@ class HyperionConfigFlow(ConfigFlow, domain=DOMAIN):
async def async_step_reauth(
self,
config_data: dict[str, Any],
config_data: Mapping[str, Any],
) -> FlowResult:
"""Handle a reauthentication flow."""
self._data = dict(config_data)