diff --git a/homeassistant/components/sql/sensor.py b/homeassistant/components/sql/sensor.py index 2ae626c67fa..5e748bed55e 100644 --- a/homeassistant/components/sql/sensor.py +++ b/homeassistant/components/sql/sensor.py @@ -42,7 +42,7 @@ _QUERY_SCHEME = vol.Schema( vol.Required(CONF_NAME): cv.string, vol.Required(CONF_QUERY): cv.string, vol.Optional(CONF_UNIT_OF_MEASUREMENT): cv.string, - vol.Optional(CONF_VALUE_TEMPLATE): cv.template, + vol.Optional(CONF_VALUE_TEMPLATE): cv.string, } )