mirror of
https://github.com/home-assistant/core.git
synced 2025-04-25 09:47:52 +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)
|
||||
for key, val in inp.items():
|
||||
val = dict(val)
|
||||
val[CONF_ENTITY_ID] = key
|
||||
res.append(val)
|
||||
return res
|
||||
|
Loading…
x
Reference in New Issue
Block a user