From b7e477fbbac6c7f32562a5096ef68c8532765e3c Mon Sep 17 00:00:00 2001 From: andrey-git Date: Mon, 23 Jan 2017 23:24:13 +0200 Subject: [PATCH] Copy val in config.py before modifying (#5520) * Copy val before modifying * Bad line location --- homeassistant/config.py | 1 + 1 file changed, 1 insertion(+) diff --git a/homeassistant/config.py b/homeassistant/config.py index bbfee5730a8..a2862c95216 100644 --- a/homeassistant/config.py +++ b/homeassistant/config.py @@ -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