From 15368d4ca1136e400959f5cc918e7e1e8d9e994f Mon Sep 17 00:00:00 2001 From: Diogo Gomes Date: Thu, 8 Feb 2018 11:17:54 +0000 Subject: [PATCH] [SMALL PATCH] Sql sensor (#12242) * Initial Commit * Passed all checks * Make DB_URL required * addresses review comments from @fabaff * unused variable * return nothing --- homeassistant/components/sensor/sql.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/homeassistant/components/sensor/sql.py b/homeassistant/components/sensor/sql.py index a0648d4851a..99da8c3c680 100644 --- a/homeassistant/components/sensor/sql.py +++ b/homeassistant/components/sensor/sql.py @@ -134,7 +134,7 @@ class SQLSensor(Entity): if data is None: _LOGGER.error("%s returned no results", self._query) - return False + return if self._template is not None: self._state = self._template.async_render_with_possible_json_value(