mirror of
https://github.com/home-assistant/core.git
synced 2025-07-18 18:57:06 +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:
parent
32c234ffcc
commit
e632a47772
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user