diff --git a/homeassistant/components/motioneye/config_flow.py b/homeassistant/components/motioneye/config_flow.py index 0361f4562c4..6b88f47a588 100644 --- a/homeassistant/components/motioneye/config_flow.py +++ b/homeassistant/components/motioneye/config_flow.py @@ -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.""" diff --git a/tests/components/motioneye/test_config_flow.py b/tests/components/motioneye/test_config_flow.py index 9ef0f78874d..269a2b8a4c4 100644 --- a/tests/components/motioneye/test_config_flow.py +++ b/tests/components/motioneye/test_config_flow.py @@ -259,6 +259,7 @@ async def test_reauth(hass: HomeAssistant) -> None: "source": config_entries.SOURCE_REAUTH, "entry_id": config_entry.entry_id, }, + data=config_entry.data, ) assert result["type"] == "form" assert not result["errors"]