1
0
mirror of https://github.com/home-assistant/core.git synced 2025-05-21 14:27:07 +00:00

14 Commits

Author SHA1 Message Date
Erik Montnemery
3e62c6ae2f
Move core config functionality to its own module ()
* Move core config functionality to its own module

* Adjust test
2024-10-24 13:34:51 +02:00
epenet
9ce7779bde
Use correct constant in rest tests () 2024-07-29 12:59:57 +02:00
Lukasz Szmit
ceaf8f2402
Add support for payload_template in rest component ()
* Add support for payload_template in rest component

* Update homeassistant/components/rest/schema.py

* Update homeassistant/components/rest/data.py

---------

Co-authored-by: Erik Montnemery <erik@montnemery.com>
2024-04-18 15:22:58 +02:00
Jan Bouwhuis
a4f52cc622
Use a constant to reference homeassistant domain ()
* Use CONF_CORE to reference `homeassistant` domain

* Just use DOMAIN

* USE DOMAIN for `homeasistant` domain in config_schema.py

* Use DOMAIN_HA as constant for homeassistant domain

* Rename CONF_CORE to DOMAIN_HA

* Rename DOMAIN_HA to HA_DOMAIN

* Use relative import

* Use direct imports
2024-03-23 19:58:39 +01:00
Marc Mueller
438d3b01b9
Use builtin TimeoutError [o-s] () 2024-02-05 12:14:37 +01:00
Michael
0916701a0b
Catch ssl errors in rest ()
* catch ssl.SSLError

* add test

* fail setup on ssl error

* adjust tests
2023-04-12 06:51:41 +02:00
Michael
72d3fa6d89
Replace the usage of unit constants by enumerations in Tests [o-r] () 2023-01-15 14:50:24 +01:00
epenet
1baa5c12c0
Fix rest schema () 2022-11-11 10:08:26 -06:00
epenet
c585817e67
Adjust REST schema validation ()
fixes undefined
2022-11-08 11:18:58 +01:00
epenet
a0ed91e30c
Add type hints to rest tests () 2022-10-31 15:30:29 +01:00
Paulus Schoutsen
31153ac155
Move fixtures part 1 () 2021-11-01 20:47:05 -07:00
Ville Skyttä
5626cc4524
Use http.HTTPStatus in components/r* () 2021-10-23 20:53:39 +02:00
J. Nick Koston
dd56cc8010
Fix rest sensor data misalignment with multiple sensors ()
If there were multiple rest data sources, the index needed
to be incremented by type instead of by data source/type
2021-03-17 22:47:42 +01:00
J. Nick Koston
2f3c2f5f4d
Add support for using a single endpoint for rest data () 2021-02-19 21:44:15 -08:00