David Barrera
4509caefde
Add index parameter to scrape sensor ( #21084 )
...
* Add index parameter to scrape sensor
The scrape sensor selects the first element of the list returned by
BeautifulSoup. This commit adds an optional index parameter to allow the
selection of a different element from the list of results. To make this
a non-breaking change, if no index value is configured, the sensor
defaults to the previous behaviour of returning the first element.
* Set default value for index to avoid later checks
2019-02-16 09:29:24 +01:00
Daniel Høyer Iversen
1bd31e3459
Change STATE_UNKOWN to None ( #20337 )
...
* Change STATE_UNKOWN to None
* Change STATE_UNKOWN to None
* tests
* tests
* tests
* tests
* tests
* style
* fix comments
* fix comments
* update fan test
2019-01-24 08:20:20 +01:00
Fabian Affolter
4905f4dd97
Upgrade beautifulsoup4 to 4.7.1
2019-01-07 19:16:04 +01:00
uchagani
3a3d488de3
Allow scrape sensor to retry setting up platform if initial setup fails ( #19498 )
2018-12-22 08:40:30 +01:00
David Peterson
2e5eb4d9dc
Add optional headers configuration for scrape ( #17085 )
2018-10-03 12:47:38 +02:00
Fabian Affolter
a7325ebe1f
Suppress traceback and log error ( #16669 )
2018-09-18 07:55:13 +02:00
Paulus Schoutsen
994b829cb4
add_devices -> add_entities ( #16171 )
...
* add_devices -> add_entities
* Lint
* PyLint
* Revert external method in scsgate
2018-08-24 16:37:30 +02:00
Fabian Affolter
2342709803
Upgrade beautifulsoup4 to 4.6.3 ( #15946 )
2018-08-13 10:52:47 +02:00
Fabian Affolter
28ad0017e1
Upgrade beautifulsoup4 to 4.6.1 ( #15727 )
2018-07-29 19:55:49 +02:00
Fabian Affolter
15cf34f45f
Add support for HTTP Basic/Digest authentication
2017-10-23 17:48:51 +02:00
Martin Eberhardt
222cc4c393
Add optional attribute option to scrape sensor ( #10001 )
...
* Add optional attribute option to scrape sensor
* Rename attribute variable to attr
2017-10-21 16:03:29 +02:00
Fabian Affolter
13df925795
Do not call update() in constructor ( #7912 )
...
* Do not call update() in constructor
* Do not call update() in constructor
* Remove unused import
2017-06-05 17:35:26 +02:00
Fabian Affolter
c12c742297
Upgrade beautifulsoup4 to 4.6.0 ( #7491 )
2017-05-08 19:39:40 +02:00
Fabian Affolter
318b0f4f36
Upgrade beautifulsoup4 to 4.5.3 ( #5519 )
2017-01-23 13:23:41 -08:00
Fabian Affolter
be272ac64a
Disable too-many-* ( #4107 )
...
* Disable too-many-* and too-few-public-methods
* Remove globally disabled pylint warnings
2016-10-30 22:18:53 +01:00
Fabian Affolter
71ee847aee
Add web scrape sensor ( #3841 )
...
* Add web scrape sensor
* Add support for 'value_template', set 'verify_ssl' to true,
and remove 'before', 'after' & 'element'
* Fix pylint issue
2016-10-16 16:06:07 -07:00