Commit graph

8 commits

Author SHA1 Message Date
Olivier Ouellet
1c465b5ad0
Add encoding configuration setting to REST and Scape ()
* Create new config parameter for default character encoding if no character encoding is declared

* Changes suggested by gjohansson-ST

* Added config flow for scape

* Removed "character"

* Change to create_async_httpx_client

* Remove CONF_ENCODING from Scrape SENSOR_SCHEMA

* Debug scrape test
2023-03-28 12:42:31 +02: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
Erik Montnemery
146ff83a16
Migrate rest binary_sensor and switch to TemplateEntity () 2022-06-28 13:53:38 -07:00
Erik Montnemery
5987266e56
Refactor template entity to allow reuse ()
* Refactor template entity to allow reuse

* Fix schema and default name

* Add tests

* Update requirements

* Improve test

* Tweak TemplateSensor initializer

* Drop attributes and availability from TemplateEntity

* Use rest sensor for proof of concept

* Revert changes in SNMP sensor

* Don't set _attr_should_poll in mixin class

* Update requirements
2022-06-08 15:55:49 +02:00
Chris Browet
b1b782419b
Add REST sensor/binary_sensor/switch templated headers & params () 2021-10-29 16:36:47 -05:00
Chris Browet
1867d24b18
Add state_class support to Rest () 2021-10-22 13:48:13 -07:00
J. Nick Koston
2f3c2f5f4d
Add support for using a single endpoint for rest data () 2021-02-19 21:44:15 -08:00