Make numeric_state error message more descriptive

pull/772/head
Philip Lundrigan 2015-12-17 17:37:39 -07:00
parent 4196d6a21c
commit a0ff8819a9
1 changed files with 2 additions and 1 deletions

View File

@ -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: