Rename FlowResultDict to FlowResult (#49847)

This commit is contained in:
Ruslan Sayfutdinov 2021-04-29 12:40:51 +01:00 committed by GitHub
parent 8be6605be9
commit 183220008d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
50 changed files with 229 additions and 269 deletions

View file

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