Use Mapping for async_step_reauth in motioneye (#72769)
This commit is contained in:
parent
394442e8a9
commit
a6db25219d
2 changed files with 4 additions and 2 deletions
|
@ -1,6 +1,7 @@
|
|||
"""Config flow for motionEye integration."""
|
||||
from __future__ import annotations
|
||||
|
||||
from collections.abc import Mapping
|
||||
from typing import Any, cast
|
||||
|
||||
from motioneye_client.client import (
|
||||
|
@ -158,10 +159,10 @@ class MotionEyeConfigFlow(ConfigFlow, domain=DOMAIN):
|
|||
|
||||
async def async_step_reauth(
|
||||
self,
|
||||
config_data: dict[str, Any] | None = None,
|
||||
config_data: Mapping[str, Any],
|
||||
) -> FlowResult:
|
||||
"""Handle a reauthentication flow."""
|
||||
return await self.async_step_user(config_data)
|
||||
return await self.async_step_user()
|
||||
|
||||
async def async_step_hassio(self, discovery_info: HassioServiceInfo) -> FlowResult:
|
||||
"""Handle Supervisor discovery."""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue