-
-
Notifications
You must be signed in to change notification settings - Fork 668
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
[Bug]: can't compare datetime.datetime to datetime.date #2644
Comments
Same Problem here ...
|
Same issue
Config: Done:
Error LOG: Logger: custom_components.waste_collection_schedule.waste_collection_schedule.source_shell fetch failed for source Abfallwirtschaftsbetrieb Esslingen: Traceback (most recent call last): File "/config/custom_components/waste_collection_schedule/waste_collection_schedule/source_shell.py", line 145, in fetch entries = self._source.fetch() ^^^^^^^^^^^^^^^^^^^^ File "/config/custom_components/waste_collection_schedule/waste_collection_schedule/source/awb_es_de.py", line 56, in fetch dates = self._ics.convert(r.text) ^^^^^^^^^^^^^^^^^^^^^^^^^ File "/config/custom_components/waste_collection_schedule/waste_collection_schedule/service/ICS.py", line 48, in convert events: List[Any] = icalevents.events( ^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/icalevents/icalevents.py", line 57, in events found_events += parse_events( ^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/icalevents/icalparser.py", line 394, in parse_events elif e.end >= f and e.start <= t and is_not_exception(e.start): ^^^^^^^^^^ TypeError: can't compare datetime.datetime to datetime.date |
I've got this issue too straight after the patch update to hone assistant, so I'm wondering if something has changed there? |
Same issue here. Fresh HA (and HACS) installation. |
Same issue here |
Same issue here fetch failed for source Landkreis Erlangen-Höchstadt: Traceback (most recent call last): File "/config/custom_components/waste_collection_schedule/waste_collection_schedule/source_shell.py", line 145, in fetch entries = self._source.fetch() ^^^^^^^^^^^^^^^^^^^^ File "/config/custom_components/waste_collection_schedule/waste_collection_schedule/source/erlangen_hoechstadt_de.py", line 25, in fetch dates = self.fetch_year(today.year) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/config/custom_components/waste_collection_schedule/waste_collection_schedule/source/erlangen_hoechstadt_de.py", line 45, in fetch_year return self._ics.convert(r.text) ^^^^^^^^^^^^^^^^^^^^^^^^^ File "/config/custom_components/waste_collection_schedule/waste_collection_schedule/service/ICS.py", line 48, in convert events: List[Any] = icalevents.events( ^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/icalevents/icalevents.py", line 57, in events found_events += parse_events( ^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/icalevents/icalparser.py", line 394, in parse_events elif e.end >= f and e.start <= t and is_not_exception(e.start): ^^^^^^^^^^ TypeError: can't compare datetime.datetime to datetime.date |
This issue is a duplicate, there is already one: #2643 |
After restoring to backup with old HACS version and then updating HACS again, the issue no longer occurred. |
I Have A Problem With:
The integration in general
What's Your Problem
When adding the integration in HA or after selecting the calendar (Abfalltermine Forchheim (abfalltermine_forchheim_de) and the associated parameters, the message
"The source returned an invalid response: "can't compare datetime.datetime to datetime.date"."
I would like to reinstall the integration because after updating the waste collection schedule no data is visible anymore.
All sensors have the status "unknown".
Source (if relevant)
No response
Logs
No response
Relevant Configuration
No response
Checklist Source Error
Checklist Sensor Error
Required
The text was updated successfully, but these errors were encountered: