Copy val in config.py before modifying (#5520)

* Copy val before modifying

* Bad line location
This commit is contained in:
andrey-git 2017-01-23 23:24:13 +02:00 committed by Paulus Schoutsen
parent 318b0f4f36
commit b7e477fbba

View File

@ -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