hass-core/homeassistant/components/rest
Oleg Kurapov 2cc38b426a
Add XML support to RESTful binary sensor (#110062)
* Add XML support to RESTful binary sensor

* Add test for binary sensor with XML input data

* Address mypy validation results by handling None returns

* Use proper incorrect XML instead of blank

* Change failure condition to match the behavior of the library method

* Change error handling for bad XML to expect ExpatError

* Parametrize bad XML test to catch both empty and invalid XML

* Move exception handling out of the shared method

---------

Co-authored-by: Erik Montnemery <erik@montnemery.com>
2024-05-30 16:29:50 +02:00
..
__init__.py Add support for payload_template in rest component (#107464) 2024-04-18 15:22:58 +02:00
binary_sensor.py Add XML support to RESTful binary sensor (#110062) 2024-05-30 16:29:50 +02:00
const.py Add support for payload_template in rest component (#107464) 2024-04-18 15:22:58 +02:00
data.py Add XML support to RESTful binary sensor (#110062) 2024-05-30 16:29:50 +02:00
entity.py
icons.json
manifest.json
notify.py
schema.py Add support for payload_template in rest component (#107464) 2024-04-18 15:22:58 +02:00
sensor.py Add XML support to RESTful binary sensor (#110062) 2024-05-30 16:29:50 +02:00
services.yaml
strings.json
switch.py
util.py