From 6dc49ff1239070e509d559f00871e19a89a72ade Mon Sep 17 00:00:00 2001 From: Paulus Schoutsen Date: Tue, 9 Aug 2016 20:58:08 -0700 Subject: [PATCH] Humanize service call config validation errors --- homeassistant/core.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/homeassistant/core.py b/homeassistant/core.py index 63273ce789a..ccd8a971f61 100644 --- a/homeassistant/core.py +++ b/homeassistant/core.py @@ -19,6 +19,7 @@ from types import MappingProxyType from typing import Optional, Any, Callable, List # NOQA import voluptuous as vol +from voluptuous.humanize import humanize_error from homeassistant.const import ( ATTR_DOMAIN, ATTR_FRIENDLY_NAME, ATTR_NOW, ATTR_SERVICE, @@ -571,7 +572,8 @@ class Service(object): self.func(call) except vol.MultipleInvalid as ex: _LOGGER.error('Invalid service data for %s.%s: %s', - call.domain, call.service, ex) + call.domain, call.service, + humanize_error(call.data, ex)) # pylint: disable=too-few-public-methods