mirror of
https://github.com/home-assistant/core.git
synced 2025-07-08 22:07:10 +00:00
parent
54d314d1d0
commit
4ad16b56f2
@ -31,15 +31,16 @@ CONFIG_SCHEMA = vol.Schema(
|
|||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
async def async_setup_platform(hass: HomeAssistant, config: ConfigType) -> bool:
|
async def async_setup(hass: HomeAssistant, config: ConfigType) -> bool:
|
||||||
"""Set up the Fast.com component. (deprecated)."""
|
"""Set up the Fast.com component. (deprecated)."""
|
||||||
hass.async_create_task(
|
if DOMAIN in config:
|
||||||
hass.config_entries.flow.async_init(
|
hass.async_create_task(
|
||||||
DOMAIN,
|
hass.config_entries.flow.async_init(
|
||||||
context={"source": SOURCE_IMPORT},
|
DOMAIN,
|
||||||
data=config[DOMAIN],
|
context={"source": SOURCE_IMPORT},
|
||||||
|
data=config[DOMAIN],
|
||||||
|
)
|
||||||
)
|
)
|
||||||
)
|
|
||||||
return True
|
return True
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user