Files
core/tests/components
dougiteixeiraandG Johansson 65c21438a6 Add query type validation independent of declaration position for SQL (#105921)
* Add query type validation independent of declaration position

* Restore close sess

* Separates invalid query and non-read-only query tests

* Add more tests

* Use the SQLParseError exception for queries that are not read-only

* Add handling for multiple SQL queries.

* Fix test

* Clean ';' at the beginning of the SQL query

* Clean ';' at the beginning of the SQL query - init

* Query cleaning before storing

* Query cleaning before setup sesensor plataform - YAML

* Exception when the SQL query type is not detected

* Cleaning

* Cleaning

* Fix typing in tests

* Fix typing in tests

* Add test for query = ';;'

* Update homeassistant/components/sql/__init__.py

Co-authored-by: G Johansson <goran.johansson@shiftit.se>

* Update homeassistant/components/sql/__init__.py

Co-authored-by: G Johansson <goran.johansson@shiftit.se>

* Update __init__.py

* Update config_flow.py

* Clean query before storing

---------

Co-authored-by: G Johansson <goran.johansson@shiftit.se>
2023-12-27 17:58:35 +01:00
..
2023-12-24 02:34:36 +01:00
2023-12-27 08:48:07 +01:00
2023-10-28 14:53:34 +02:00
2023-11-29 16:13:54 +01:00
2023-12-27 12:55:10 +01:00
2023-12-13 14:52:44 +01:00
2023-12-03 16:28:53 +01:00
2023-11-07 14:11:54 +01:00
2023-12-18 00:16:31 +01:00
2023-11-06 23:31:54 +01:00
2023-12-22 13:18:32 +01:00
2023-11-10 07:25:25 -06:00
2023-12-27 14:46:57 +01:00
2023-12-13 17:05:37 +01:00
2023-12-18 19:48:00 +01:00
2023-12-05 07:17:56 -10:00