I am having problems reading my sqlite database. The query works, but when the same query is added in homeassistant it is suddenly invalid. The query for database size does work with the same database. That’s weird.
Error SQL Query invalid:
SELECT "temperature" AS value FROM "metrics" ORDER BY "datetime" DESC LIMIT 1;
Same Query in database:
Database size query: