1
0
mirror of https://github.com/home-assistant/core.git synced 2025-12-26 05:57:01 +00:00

protect service data for changes in calls (#3249)

* protect service data for changes in calls

* change handling

* move MappingProxyType to service call
This commit is contained in:
Pascal Vizeli
2016-09-07 17:19:19 +02:00
committed by Paulus Schoutsen
parent 32c234ffcc
commit e632a47772

View File

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