Skip to content
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

Source Issue - Newcastle Under-Lyme #1358

Closed
Malawigold opened this issue Oct 25, 2023 · 5 comments · Fixed by #1379
Closed

Source Issue - Newcastle Under-Lyme #1358

Malawigold opened this issue Oct 25, 2023 · 5 comments · Fixed by #1379
Labels
source defect Defect of a source reported

Comments

@Malawigold
Copy link

Hi all, I wonder if someone can help me fix this issue, I'm not getting any updates and the log files show:

Logger: waste_collection_schedule.source_shell
Source: custom_components/waste_collection_schedule/waste_collection_schedule/source_shell.py:136
Integration: waste_collection_schedule (documentation)
First occurred: 15:32:44 (2 occurrences)
Last logged: 15:33:06
fetch failed for source Newcastle Under Lyme Borough Council: Traceback (most recent call last): File "/config/custom_components/waste_collection_schedule/waste_collection_schedule/source_shell.py", line 134, in fetch entries = self._source.fetch() ^^^^^^^^^^^^^^^^^^^^ File "/config/custom_components/waste_collection_schedule/waste_collection_schedule/source/newcastle_staffs_gov_uk.py", line 52, in fetch dt = datetime.strptime(cell.text, "%A %d %B %Y").date() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/_strptime.py", line 568, in _strptime_datetime tt, fraction, gmtoff_fraction = _strptime(data_string, format) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/_strptime.py", line 349, in _strptime raise ValueError("time data %r does not match format %r" % ValueError: time data '\n\r\n\r\n\r\n\r\n\r\n <system.web>\r\n \r\n </system.web>\r\n\n' does not match format '%A %d %B %Y'

@dt215git
Copy link
Contributor

It looks like they've changed the website url and page format that displays the schedule, the script will need updating.

@Doghousestaffs
Copy link

Strangely getting exact same error for stoke gov uk as well! Hello neighbour 🤣

@RyanTunstall
Copy link

Hi Neighbour. I’m also in Newcastle-under-Lyme and am having the same issue.

@5ila5 5ila5 added the source defect Defect of a source reported label Oct 27, 2023
@5ila5 5ila5 linked a pull request Nov 4, 2023 that will close this issue
@5ila5
Copy link
Collaborator

5ila5 commented Nov 4, 2023

fixed by above PR.
Fix will be part of release 1.44.0 or is available now as master version (HACS: 3-dot menu -> redownload -> change version to master)

@5ila5 5ila5 closed this as completed Nov 4, 2023
@RyanTunstall
Copy link

RyanTunstall commented Nov 4, 2023 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
source defect Defect of a source reported
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants