Michael
7704ef95a4
Make feedreader recoverable ( #134202 )
...
raise ConfigEntryNotReady on connection errors during setup
2024-12-29 15:08:15 +01:00
Jan Bouwhuis
3a2460f9f9
Remove yaml import from feedreader integration ( #132278 )
...
* Remove yaml import from feedreader integration
* Update homeassistant/components/feedreader/config_flow.py
Co-authored-by: epenet <6771947+epenet@users.noreply.github.com>
* Drop _max_entries class attribute
---------
Co-authored-by: epenet <6771947+epenet@users.noreply.github.com>
2024-12-05 20:57:43 +01:00
Sergio Conde Gómez
94bf77606b
Unscape HTML Entities from RSS feeds ( #130915 )
...
* Unscape HTML Entities from RSS feeds
* Improve tests
2024-11-20 18:21:16 +01:00
epenet
25aea140be
Cleanup unnecessary reconfigure_confirm from config flows ( #128086 )
2024-10-14 12:57:15 +02:00
epenet
9873371413
Use start_reconfigure_flow in config flow tests ( #127191 )
...
* Use start_reconfigure_flow in config flow tests
* Adjust fritz
2024-10-02 10:01:15 +02:00
rubenbe
b3b5d9602a
Add RSS description to Feedreader event ( #126681 )
2024-09-27 13:46:48 +02:00
epenet
075550b7ba
Use HOMEASSISTANT_DOMAIN alias for core DOMAIN in tests ( #122762 )
2024-07-29 12:51:12 +02:00
Michael
7e1fb88e4e
Post merge review for Feedreader ( #122327 )
...
* remove unneccessary typing
* assert type list while type checking
* remove summary, since feedparser parse it already into content
* add further tests
2024-07-21 20:55:02 +02:00
Michael
0558e480ce
Add event entity to Feedreader ( #118147 )
2024-07-07 21:44:41 +02:00
Michael
846528131e
Allow current empty feeds to be configured in Feedreader ( #121421 )
2024-07-07 15:11:28 +02:00
Michael
d6be733287
Add config flow to Feedreader ( #118047 )
2024-06-21 20:23:47 +02:00
Michael
a24d97d79d
Convert Feedreader to use an update coordinator ( #118007 )
2024-05-27 14:48:41 +02:00
Sid
0d66d298ec
Enable Ruff RET504 ( #114528 )
...
* Enable Ruff RET504
* fix test
* Use noqa instead of cast
* fix sonos RET504
---------
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2024-04-06 11:07:37 +02:00
Joost Lekkerkerker
6bb4e7d62c
Bump ruff to 0.3.4 ( #112690 )
...
Co-authored-by: Sid <27780930+autinerd@users.noreply.github.com>
Co-authored-by: Marc Mueller <30130371+cdce8p@users.noreply.github.com>
Co-authored-by: J. Nick Koston <nick@koston.org>
2024-03-26 00:02:16 +01:00
Joost Lekkerkerker
cede16fc40
Move Feedreader fixture to integration test ( #112989 )
2024-03-10 23:27:38 -04:00
J. Nick Koston
65358c129a
Replace periodic tasks with background tasks ( #112726 )
...
* Phase out periodic tasks
* false by default or some tests will block forever, will need to fix each one manually
* kwarg works
* kwarg works
* kwarg works
* fixes
* fix more tests
* fix more tests
* fix lifx
* opensky
* pvpc_hourly_pricing
* adjust more
* adjust more
* smarttub
* adjust more
* adjust more
* adjust more
* adjust more
* adjust
* no eager executor
* zha
* qnap_qsw
* fix more
* fix fix
* docs
* its a wrapper now
* add more coverage
* coverage
* cover all combos
* more fixes
* more fixes
* more fixes
* remaining issues are legit bugs in tests
* make tplink test more predictable
* more fixes
* feedreader
* grind out some more
* make test race safe
* one more
2024-03-08 21:45:10 -05:00
Marc Mueller
c88b337600
Add empty line after module docstring [tests f-k] ( #112709 )
2024-03-08 14:50:04 +01:00
Matt
345f7f2003
Fix feedreader date comparison to allow RSS entries with identical timestamps ( #104925 )
...
Change feedreader publishdate comparison
2023-12-23 16:48:36 +01:00
Martin Hjelmare
91df9434d0
Use storage helper in feedreader ( #98754 )
2023-08-21 18:21:34 +02:00
epenet
c303487c1b
Fix lingering timer in feedreader ( #92180 )
2023-04-28 21:16:08 +02:00
epenet
b9beed4624
Add type hints to integration tests (part 6) ( #87979 )
2023-02-13 09:45:11 +01:00
epenet
7a4d15a657
Add type hints to integration tests (f-g) ( #87700 )
2023-02-08 13:33:52 +01:00
d0nni3q84
f7bd88c952
Fix Feedreader Atom feeds using `updated` date ( #73208 )
...
* Feedreader: Properly support Atom feeds that use only the `updated` date format and resolve #73207 .
* Revert "Feedreader: Properly support Atom feeds that use only the `updated` date format and resolve #73207."
This reverts commit 4dbd11ee04
.
* Properly support Atom feeds that use only the `updated` date format and resolve #73207 .
* Revert "Properly support Atom feeds that use only the `updated` date format and resolve #73207."
This reverts commit 14366c6a24
.
* Properly support Atom feeds that use only the `updated` date format and resolve #73207 .
2022-06-08 20:32:01 +02:00
epenet
b9d3bb4cfd
Fix tests and add setup type in feedreader ( #64280 )
...
* Fix feedreader tests
* Cleanup
* Add setup type hints
Co-authored-by: epenet <epenet@users.noreply.github.com>
2022-01-17 09:42:00 +01:00
Brig Lamoreaux
d1e30fdd54
Rewrite test for feedreader ( #57292 )
...
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2021-10-19 17:15:56 +02:00
tkdrob
a5a45f29e2
Cleanup unused loggers ( #46510 )
2021-02-14 13:46:58 +01:00
Franck Nijhof
65cf2fcb6f
Drop asynctest ( #44746 )
2021-01-01 22:31:56 +01:00
Felipe Martins Diel
fec4966ee0
Clean up feedreader files at the end ( #39064 )
2020-08-19 16:38:34 -05:00
Paulus Schoutsen
c33edbe5bb
Use TestCase.addCleanup ( #36560 )
2020-06-08 12:26:40 -07:00
Paulus Schoutsen
2af984917e
Use asynctest-mock in most places ( #35109 )
...
* Use asynctest-mock in most places
* Fix broken patch in pilight
2020-05-03 11:27:19 -07:00
springstan
ad102b3840
Use f-strings in integrations starting with "F"and"G" ( #32150 )
...
* Use f-strings in integrations starting with F
* Use f-strings in tests for integrations starting with F
* Use f-strings in integrations starting with G
* Use f-strings in tests for integrations starting with G
* Fix pylint error
* Fix broken test
2020-02-24 17:54:20 -08:00
Ville Skyttä
e6388e186c
Remove unnecessary string literal concatenations ( #30360 )
2020-01-02 21:17:10 +02:00
Bas Nijholt
c59bf0bff6
`genericpath` is an internal Python module and shouldn't be imported according to core Python devs. (see [this]( https://bugs.python.org/msg358136 ) comment) ( #29903 )
...
For a reason unknown to me, @exxamalte introduced this in https://github.com/home-assistant/home-assistant/pull/14342 .
The problem is that Linux and macOS implement `os.path` differently, one imports from [`ntpath.py`](https://github.com/python/cpython/blob/master/Lib/ntpath.py ) and the other one from [`posixpath.py`](https://github.com/python/cpython/blob/master/Lib/posixpath.py ), and both these files use `genericpath.py`.
Somehow, `isort` on macOS will see `genericpath` as a third party library and sort it accordingly.
Other Unix-based OSes will correctly treat `genericpath` as an internal library.
This problem led to a sorting sequence in the following commits:
- ca0fad2cbb
- f5d4878992
- 7d68e88d31
- 1fee400dcd
This supersedes https://github.com/home-assistant/home-assistant/pull/29893 .
2019-12-13 09:47:09 +01:00
Alexei Chetroi
1fee400dcd
Revert "Sort import for tests/components/feedreader/test_init.… ( #29882 )
...
This reverts commit 7d68e88d31
.
2019-12-12 17:10:43 +01:00
Bas Nijholt
7d68e88d31
Sort import for tests/components/feedreader/test_init.py ( #29878 )
...
This unblocks https://github.com/home-assistant/home-assistant/pull/29739
2019-12-12 15:56:32 +01:00
Franck Nijhof
f5d4878992
Fix isort on a small set of misc files ( #29803 )
2019-12-10 09:25:42 +01:00
Bas Nijholt
ca0fad2cbb
Sort imports according to PEP8 for components starting with "F" ( #29766 )
2019-12-09 14:14:40 +01:00
Malte Franken
d200c2dca2
fix feedreader handling unrecognized published date ( #28225 )
2019-10-31 21:05:42 +01:00
Paulus Schoutsen
4de97abc3a
Black
2019-07-31 12:25:30 -07:00
Paulus Schoutsen
b8cc547fa3
Move components to folders ( #20774 )
...
* Move all components into folders
* Move component tests into folders
* Fix init moving
* Move tests
* Lint
* Update coverage
* Fix service descriptions
* Update CODEOWNERS
2019-02-05 19:31:15 -08:00