Add type hints to async_step_reauth in components (#74138)
This commit is contained in:
parent
6dc6e71f01
commit
edc1ee2985
9 changed files with 37 additions and 10 deletions
|
@ -1,6 +1,7 @@
|
|||
"""Config flow for IntelliFire integration."""
|
||||
from __future__ import annotations
|
||||
|
||||
from collections.abc import Mapping
|
||||
from dataclasses import dataclass
|
||||
from typing import Any
|
||||
|
||||
|
@ -220,10 +221,12 @@ class ConfigFlow(config_entries.ConfigFlow, domain=DOMAIN):
|
|||
LOGGER.debug("Running Step: manual_device_entry")
|
||||
return await self.async_step_manual_device_entry()
|
||||
|
||||
async def async_step_reauth(self, user_input=None):
|
||||
async def async_step_reauth(self, entry_data: Mapping[str, Any]) -> FlowResult:
|
||||
"""Perform reauth upon an API authentication error."""
|
||||
LOGGER.debug("STEP: reauth")
|
||||
entry = self.hass.config_entries.async_get_entry(self.context["entry_id"])
|
||||
assert entry
|
||||
assert entry.unique_id
|
||||
|
||||
# populate the expected vars
|
||||
self._serial = entry.unique_id
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue