diff --git a/homeassistant/components/watttime/config_flow.py b/homeassistant/components/watttime/config_flow.py index c2db7847b56..a00ba4c8c86 100644 --- a/homeassistant/components/watttime/config_flow.py +++ b/homeassistant/components/watttime/config_flow.py @@ -78,7 +78,7 @@ class ConfigFlow(config_entries.ConfigFlow, domain=DOMAIN): async def _async_validate_credentials( self, username: str, password: str, error_step_id: str, error_schema: vol.Schema - ): + ) -> FlowResult: """Validate input credentials and proceed accordingly.""" session = aiohttp_client.async_get_clientsession(self.hass) diff --git a/tests/components/watttime/test_config_flow.py b/tests/components/watttime/test_config_flow.py index 249bd51c4da..672f294c099 100644 --- a/tests/components/watttime/test_config_flow.py +++ b/tests/components/watttime/test_config_flow.py @@ -179,7 +179,6 @@ async def test_step_reauth(hass: HomeAssistant, client_login) -> None: }, ).add_to_hass(hass) - await setup.async_setup_component(hass, "persistent_notification", {}) with patch( "homeassistant.components.watttime.async_setup_entry", return_value=True, @@ -222,7 +221,6 @@ async def test_step_reauth_invalid_credentials(hass: HomeAssistant) -> None: }, ).add_to_hass(hass) - await setup.async_setup_component(hass, "persistent_notification", {}) with patch( "homeassistant.components.watttime.config_flow.Client.async_login", AsyncMock(side_effect=InvalidCredentialsError),