From e632a47772d1f48b3b46d62b3a9ea7b89613fcff Mon Sep 17 00:00:00 2001 From: Pascal Vizeli Date: Wed, 7 Sep 2016 17:19:19 +0200 Subject: [PATCH] protect service data for changes in calls (#3249) * protect service data for changes in calls * change handling * move MappingProxyType to service call --- homeassistant/core.py | 1 + 1 file changed, 1 insertion(+) diff --git a/homeassistant/core.py b/homeassistant/core.py index 6ecb27d875c..03f9658325f 100644 --- a/homeassistant/core.py +++ b/homeassistant/core.py @@ -581,6 +581,7 @@ class Service(object): try: if self.schema: call.data = self.schema(call.data) + call.data = MappingProxyType(call.data) self.func(call) except vol.MultipleInvalid as ex: