forked from home-assistant/core
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):
|
async def async_step_import(self, conf: dict):
|
||||||
"""Import a configuration from config.yaml."""
|
"""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)
|
return await self.async_step_device(user_input=conf)
|
||||||
|
|
||||||
async def async_step_user(self, user_input=None):
|
async def async_step_user(self, user_input=None):
|
||||||
|
Reference in New Issue
Block a user