From a0ff8819a99e2e104fb0c2bc7aabd9f2018e889a Mon Sep 17 00:00:00 2001 From: Philip Lundrigan Date: Thu, 17 Dec 2015 17:37:39 -0700 Subject: [PATCH] Make numeric_state error message more descriptive --- homeassistant/components/automation/numeric_state.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/homeassistant/components/automation/numeric_state.py b/homeassistant/components/automation/numeric_state.py index a4cbce8182a..f2baf760748 100644 --- a/homeassistant/components/automation/numeric_state.py +++ b/homeassistant/components/automation/numeric_state.py @@ -99,7 +99,8 @@ def _in_range(range_start, range_end, value): try: value = float(value) except ValueError: - _LOGGER.warning("Missing value in numeric check") + _LOGGER.warning("Value returned from template is not a number: %s", + value) return False if range_start is not None and range_end is not None: