Standardize import step variable name (part 1) (#124674)
This commit is contained in:
parent
715f4bd2c3
commit
831a1d7ad1
23 changed files with 81 additions and 83 deletions
|
@ -82,15 +82,15 @@ class TOTPConfigFlow(ConfigFlow, domain=DOMAIN):
|
|||
errors=errors,
|
||||
)
|
||||
|
||||
async def async_step_import(self, import_info: dict[str, Any]) -> ConfigFlowResult:
|
||||
async def async_step_import(self, import_data: dict[str, Any]) -> ConfigFlowResult:
|
||||
"""Import config from yaml."""
|
||||
|
||||
await self.async_set_unique_id(import_info[CONF_TOKEN])
|
||||
await self.async_set_unique_id(import_data[CONF_TOKEN])
|
||||
self._abort_if_unique_id_configured()
|
||||
|
||||
return self.async_create_entry(
|
||||
title=import_info.get(CONF_NAME, DEFAULT_NAME),
|
||||
data=import_info,
|
||||
title=import_data.get(CONF_NAME, DEFAULT_NAME),
|
||||
data=import_data,
|
||||
)
|
||||
|
||||
async def async_step_confirm(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue