mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 21:27:38 +00:00
Add debug output for invalid service call data (#37171)
This commit is contained in:
parent
b0df223f5a
commit
584ce043e5
@ -1219,7 +1219,16 @@ class ServiceRegistry:
|
|||||||
raise ServiceNotFound(domain, service) from None
|
raise ServiceNotFound(domain, service) from None
|
||||||
|
|
||||||
if handler.schema:
|
if handler.schema:
|
||||||
|
try:
|
||||||
processed_data = handler.schema(service_data)
|
processed_data = handler.schema(service_data)
|
||||||
|
except vol.Invalid:
|
||||||
|
_LOGGER.debug(
|
||||||
|
"Invalid data for service call %s.%s: %s",
|
||||||
|
domain,
|
||||||
|
service,
|
||||||
|
service_data,
|
||||||
|
)
|
||||||
|
raise
|
||||||
else:
|
else:
|
||||||
processed_data = service_data
|
processed_data = service_data
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user