mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 11:17:21 +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:
|
try:
|
||||||
if self.schema:
|
if self.schema:
|
||||||
call.data = self.schema(call.data)
|
call.data = self.schema(call.data)
|
||||||
|
call.data = MappingProxyType(call.data)
|
||||||
|
|
||||||
self.func(call)
|
self.func(call)
|
||||||
except vol.MultipleInvalid as ex:
|
except vol.MultipleInvalid as ex:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user