Add identification for YAML imports (#48162)
This commit is contained in:
parent
dc15f243e6
commit
a583f56bd8
1 changed files with 2 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue