mirror of
https://github.com/home-assistant/core.git
synced 2025-07-16 17:57:11 +00:00
[SMALL PATCH] Sql sensor (#12242)
* Initial Commit * Passed all checks * Make DB_URL required * addresses review comments from @fabaff * unused variable * return nothing
This commit is contained in:
parent
5601fbdc7a
commit
15368d4ca1
@ -134,7 +134,7 @@ class SQLSensor(Entity):
|
|||||||
|
|
||||||
if data is None:
|
if data is None:
|
||||||
_LOGGER.error("%s returned no results", self._query)
|
_LOGGER.error("%s returned no results", self._query)
|
||||||
return False
|
return
|
||||||
|
|
||||||
if self._template is not None:
|
if self._template is not None:
|
||||||
self._state = self._template.async_render_with_possible_json_value(
|
self._state = self._template.async_render_with_possible_json_value(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user