mirror of
https://github.com/home-assistant/core.git
synced 2025-07-22 20:57:21 +00:00
Adjust config-flow type hints in dynalite (#72476)
This commit is contained in:
parent
bf75cb3cc5
commit
53fb581bff
@ -5,6 +5,7 @@ from typing import Any
|
|||||||
|
|
||||||
from homeassistant import config_entries
|
from homeassistant import config_entries
|
||||||
from homeassistant.const import CONF_HOST
|
from homeassistant.const import CONF_HOST
|
||||||
|
from homeassistant.data_entry_flow import FlowResult
|
||||||
|
|
||||||
from .bridge import DynaliteBridge
|
from .bridge import DynaliteBridge
|
||||||
from .const import DOMAIN, LOGGER
|
from .const import DOMAIN, LOGGER
|
||||||
@ -20,7 +21,7 @@ class DynaliteFlowHandler(config_entries.ConfigFlow, domain=DOMAIN):
|
|||||||
"""Initialize the Dynalite flow."""
|
"""Initialize the Dynalite flow."""
|
||||||
self.host = None
|
self.host = None
|
||||||
|
|
||||||
async def async_step_import(self, import_info: dict[str, Any]) -> Any:
|
async def async_step_import(self, import_info: dict[str, Any]) -> FlowResult:
|
||||||
"""Import a new bridge as a config entry."""
|
"""Import a new bridge as a config entry."""
|
||||||
LOGGER.debug("Starting async_step_import - %s", import_info)
|
LOGGER.debug("Starting async_step_import - %s", import_info)
|
||||||
host = import_info[CONF_HOST]
|
host = import_info[CONF_HOST]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user