Copy val in config.py before modifying (#5520)
* Copy val before modifying * Bad line location
This commit is contained in:
parent
318b0f4f36
commit
b7e477fbba
1 changed files with 1 additions and 0 deletions
|
@ -102,6 +102,7 @@ def _convert_old_config(inp: Any) -> List:
|
|||
|
||||
inp = vol.Schema({cv.match_all: dict})(inp)
|
||||
for key, val in inp.items():
|
||||
val = dict(val)
|
||||
val[CONF_ENTITY_ID] = key
|
||||
res.append(val)
|
||||
return res
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue