Open wralb opened 8 months ago
@wralb Thank you for reporting it. TIL that Atom Syndication Format exists. Since the Home Assistant Alerts feed is published in this format, the code of the feedparser integration can not assume that all feeds are RSS 2.0 compliant, it also needs to work with the Atom feeds. I have a working implementation of time parsing already, but I still need to test it and do a new release. I would like to get to it in a few days. I will keep you posted.
Using Home Assistant 2024.03.0 in python 3.12 venv on Ubuntu LTS on VM in XCP-NG on intel server
Since upgrading from Feedparser release version to beta 0.2.0.b7 I get many warning like the one below for several feeds:
Note the period character after "Z" in the date string in the warning message.
A good feed to test with is
https://alerts.home-assistant.io/feed.xml
. This feed has entries like below with validW3CDTF (UTC timezone)
datetimes (and no 'period character'):An extract from the resulting sensor looks like:
Note, again, the period character in the dates in the above sensor. Is this correct?
I've tried three things, none of which help:
'date_format: '%Y-%m-%dT%H:%M:%SZ.'
(period character in strftime definition)'date_format: '%Y-%m-%dT%H:%M:%SZ'
(no period character in strftime definition)