mirror of
https://github.com/home-assistant/core.git
synced 2026-04-21 05:25:35 +00:00
Add identification for YAML imports (#48162)
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user