-
-
Notifications
You must be signed in to change notification settings - Fork 33.8k
Fix Feedreader Atom feeds using updated
8000
date
#73208
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
…ate format and resolve #73207.
Hi @d0nni3q84, It seems you haven't yet signed a CLA. Please do so here. Once you do that we will be able to review and accept this pull request. Thanks! |
updated
d…updated
date
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please make sure that the CI buil 8000 d passes and add a test. Probably something similar to this:
core/tests/components/feedreader/test_init.py
Lines 100 to 120 in 4bc0438
async def test_feed(hass, events, feed_one_event): | |
"""Test simple feed with valid data.""" | |
with patch( | |
"feedparser.http.get", | |
return_value=feed_one_event, | |
): | |
assert await async_setup_component(hass, feedreader.DOMAIN, VALID_CONFIG_2) | |
hass.bus.async_fire(EVENT_HOMEASSISTANT_START) | |
await hass.async_block_till_done() | |
assert len(events) == 1 | |
assert events[0].data.title == "Title 1" | |
assert events[0].data.description == "Description 1" | |
assert events[0].data.link == "http://www.example.com/link/1" | |
assert events[0].data.id == "GUID 1" | |
assert events[0].data.published_parsed.tm_year == 2018 | |
assert events[0].data.published_parsed.tm_mon == 4 | |
assert events[0].data.published_parsed.tm_mday == 30 | |
assert events[0].data.published_parsed.tm_hour == 5 | |
assert events[0].data.published_parsed.tm_min == 10 |
Thank you, @MartinHjelmare, for the feedback. Latest commit addresses failed CI and code coverage; tests passing locally. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
Breaking change
Proposed change
Properly support Atom feeds that use only the
updated
date format and resolve #73207.Type of change
Additional information
Checklist
black --fast homeassistant tests
)If user exposed functionality or configuration variables are added/changed:
If the code communicates with devices, web services, or third-party tools:
Updated and included derived files by running:
python3 -m script.hassfest
.requirements_all.txt
.Updated by running
python3 -m script.gen_requirements_all
..coveragerc
.The integration reached or maintains the following Integration Quality Scale:
To help with the load of incoming pull requests: