core/homeassistant/components/rest
emufan 61c57d4d56
Add another xml content type for JSON conversion in RESTful sensor (#44312)
* Update sensor.py

Some xml-result is passed via "application/xhtml+xml" instead of text/xml or application/xml. And then the xml structure is not parsed to json as expected. I changed it locally, but suggest to add thise here as well.

* Update homeassistant/components/rest/sensor.py

Fine for me as well, as it is working this way as well. But I would not see any disadvantage to convert everything, what is possible - a better scrape sensor this way. ;)

Co-authored-by: J. Nick Koston <nick@koston.org>

Co-authored-by: J. Nick Koston <nick@koston.org>
2020-12-18 14:27:12 -06:00
..
__init__.py
binary_sensor.py Create httpx helper to wrap a shared httpx.AsyncClient (#43877) 2020-12-09 17:18:57 +01:00
data.py Create httpx helper to wrap a shared httpx.AsyncClient (#43877) 2020-12-09 17:18:57 +01:00
manifest.json
notify.py Add initial rest query params (#42198) 2020-11-11 09:03:55 -10:00
sensor.py Add another xml content type for JSON conversion in RESTful sensor (#44312) 2020-12-18 14:27:12 -06:00
services.yaml
switch.py Add initial rest query params (#42198) 2020-11-11 09:03:55 -10:00