JonasJoKuJonas / homeassistant-WebUntis

Custom component to access data from Web Untis in Home Assistant
https://community.home-assistant.io/t/webuntis-timetable-in-ha/568273
MIT License
46 stars 11 forks source link

startDate and endDate are not within a single school year #130

Open kauthmbt opened 2 months ago

kauthmbt commented 2 months ago

The problem

Looks like an old friend from last summer is back: https://github.com/JonasJoKuJonas/homeassistant-WebUntis/issues/76

The summer holidays in NRW have started, so the integration is showing up again with these entries in the logfile.

Version of Home Assistant?

2024.7.1

What type of installation are you running?

Home Assistant OS

Version of WebUntis

1.1.4

Last working WebUntis version

No response

Traceback/Error logs

Dieser Fehler wurde von einer benutzerdefinierten Integration verursacht

Logger: webuntis Quelle: custom_components/webuntis/init.py:510 Integration: Web Untis (Dokumentation, Probleme) Erstmals aufgetreten: 00:00:19 (585 Vorkommnisse) Zuletzt protokolliert: 09:40:20

{'jsonrpc': '2.0', 'id': '2024-07-08 09:40:19.859583', 'error': {'message': 'startDate and endDate are not within a single school year.', 'code': -8507}} {'jsonrpc': '2.0', 'id': '2024-07-08 09:40:19.937253', 'error': {'message': 'startDate and endDate are not within a single school year.', 'code': -8507}} {'jsonrpc': '2.0', 'id': '2024-07-08 09:40:20.021330', 'error': {'message': 'startDate and endDate are not within a single school year.', 'code': -8507}} {'jsonrpc': '2.0', 'id': '2024-07-08 09:40:20.102434', 'error': {'message': 'startDate and endDate are not within a single school year.', 'code': -8507}} {'jsonrpc': '2.0', 'id': '2024-07-08 09:40:20.179545', 'error': {'message': 'startDate and endDate are not within a single school year.', 'code': -8507}}

Additional information

No response

JonasJoKuJonas commented 1 month ago

I encountered the same error, but I was away on vacation during the specified days and couldn't investigate the issue. Now that I'm back, I'm trying to fix it and hope to get it working again.