Fix sql false warning (#67614)
This commit is contained in:
parent
5965b015dd
commit
3f9a6bbaa7
2 changed files with 7 additions and 2 deletions
|
@ -172,7 +172,7 @@ class SQLSensor(SensorEntity):
|
|||
else:
|
||||
self._attr_native_value = data
|
||||
|
||||
if not data:
|
||||
if data is None:
|
||||
_LOGGER.warning("%s returned no results", self._query)
|
||||
|
||||
sess.close()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue