mirror of
https://github.com/home-assistant/core.git
synced 2025-07-22 20:57:21 +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
|
||||
|
||||
if handler.schema:
|
||||
processed_data = handler.schema(service_data)
|
||||
try:
|
||||
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:
|
||||
processed_data = service_data
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user