mirror of
https://github.com/home-assistant/core.git
synced 2025-07-17 10:17:09 +00:00
Add identification for YAML imports (#48162)
This commit is contained in:
parent
dc15f243e6
commit
a583f56bd8
@ -46,6 +46,8 @@ class XiaomiMiioFlowHandler(config_entries.ConfigFlow, domain=DOMAIN):
|
||||
|
||||
async def async_step_import(self, conf: dict):
|
||||
"""Import a configuration from config.yaml."""
|
||||
host = conf[CONF_HOST]
|
||||
self.context.update({"title_placeholders": {"name": f"YAML import {host}"}})
|
||||
return await self.async_step_device(user_input=conf)
|
||||
|
||||
async def async_step_user(self, user_input=None):
|
||||
|
Loading…
x
Reference in New Issue
Block a user