mirror of
https://github.com/esphome/esphome.git
synced 2024-11-10 01:07:45 +01:00
Force using name substitution when adopting a device (#3451)
This commit is contained in:
parent
8236e840a7
commit
df999723f8
1 changed files with 4 additions and 1 deletions
|
@ -64,7 +64,10 @@ def import_config(path: str, name: str, project_name: str, import_url: str) -> N
|
|||
config = {
|
||||
"substitutions": {"name": name},
|
||||
"packages": {project_name: import_url},
|
||||
"esphome": {"name_add_mac_suffix": False},
|
||||
"esphome": {
|
||||
"name": "${name}",
|
||||
"name_add_mac_suffix": False,
|
||||
},
|
||||
}
|
||||
p.write_text(
|
||||
dump(config) + WIFI_CONFIG,
|
||||
|
|
Loading…
Reference in a new issue