mirror of
https://github.com/home-assistant/core.git
synced 2025-04-27 10:47:51 +00:00
Copy val in config.py before modifying (#5520)
* Copy val before modifying * Bad line location
This commit is contained in:
parent
318b0f4f36
commit
b7e477fbba
@ -102,6 +102,7 @@ def _convert_old_config(inp: Any) -> List:
|
|||||||
|
|
||||||
inp = vol.Schema({cv.match_all: dict})(inp)
|
inp = vol.Schema({cv.match_all: dict})(inp)
|
||||||
for key, val in inp.items():
|
for key, val in inp.items():
|
||||||
|
val = dict(val)
|
||||||
val[CONF_ENTITY_ID] = key
|
val[CONF_ENTITY_ID] = key
|
||||||
res.append(val)
|
res.append(val)
|
||||||
return res
|
return res
|
||||||
|
Loading…
x
Reference in New Issue
Block a user