Change dict[str, Any] to FlowResultDict (#49546)

This commit is contained in:
Milan Meulemans 2021-04-23 05:23:15 +02:00 committed by GitHub
parent 686c92097f
commit 48695869f9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
29 changed files with 113 additions and 93 deletions

View file

@ -7,6 +7,7 @@ from rpi_bad_power import new_under_voltage
from homeassistant import config_entries
from homeassistant.core import HomeAssistant
from homeassistant.data_entry_flow import FlowResultDict
from homeassistant.helpers.config_entry_flow import DiscoveryFlowHandler
from .const import DOMAIN
@ -34,7 +35,7 @@ class RPiPowerFlow(DiscoveryFlowHandler, domain=DOMAIN):
async def async_step_onboarding(
self, data: dict[str, Any] | None = None
) -> dict[str, Any]:
) -> FlowResultDict:
"""Handle a flow initialized by onboarding."""
has_devices = await self._discovery_function(self.hass)