Change dict[str, Any] to FlowResultDict (#49546)
This commit is contained in:
parent
686c92097f
commit
48695869f9
29 changed files with 113 additions and 93 deletions
|
@ -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)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue