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

Migrationsfehler seit letztem Update auf v1.1.1 #122

Closed deepblue120 closed 4 months ago

deepblue120 commented 4 months ago

The problem

Meine beiden Einträge haben seit dem letzten Update einen Migrationsfehler.

Version of Home Assistant?

Core 2024.5.2 Supervisor 2024.04.4 Operating System 12.2 Frontend 20240501.1

What type of installation are you running?

Home Assistant OS

Version of WebUntis

v1.1.1

Last working WebUntis version

No response

Traceback/Error logs

No response

Additional information

No response

deepblue120 commented 4 months ago

Aus den Protokollen kommt folgendes: Logger: homeassistant.config_entries Quelle: config_entries.py:880 Erstmals aufgetreten: 07:27:19 (2 Vorkommnisse) Zuletzt protokolliert: 07:27:19

Error migrating entry sohn for webuntis Error migrating entry tochter for webuntis Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/config_entries.py", line 880, in async_migrate result = await component.async_migrate_entry(hass, self) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/config/custom_components/webuntis/init.py", line 98, in async_migrate_entry options["notify_config"][notify_key]["options"].index("lesson change") ValueError: 'lesson change' is not in list

JonasJoKuJonas commented 4 months ago

quick fix - should work now

deepblue120 commented 4 months ago

Still doesn´t work? Restartet HA.

JonasJoKuJonas commented 4 months ago

do you get the same error?

deepblue120 commented 4 months ago

Yes

JonasJoKuJonas commented 4 months ago

schick nochmal den neuen error

JonasJoKuJonas commented 4 months ago

Du kannst auch auf Discord schreiben da bekommst du meist schneller eine Antwort

deepblue120 commented 4 months ago

Hab ich (noch) nicht. Hier der Fehler

Logger: homeassistant.config_entries Quelle: config_entries.py:880 Erstmals aufgetreten: 09:23:58 (2 Vorkommnisse) Zuletzt protokolliert: 09:23:58

Error migrating entry Tochter for webuntis Error migrating entry Sohn for webuntis Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/config_entries.py", line 880, in async_migrate result = await component.async_migrate_entry(hass, self) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/config/custom_components/webuntis/init.py", line 98, in async_migrate_entry options["notify_config"][notify_key]["options"].index("lesson change") ValueError: 'lesson change' is not in list

JonasJoKuJonas commented 4 months ago

Der Fehler ist noch von der alten Version. Da ist beim aktualisieren irgendwas schief gelaufen

deepblue120 commented 4 months ago

Hallo Jonas, ich habe keine Aktualisierung in HA. Es sieht so aus als wäre v1.1.1 immer noch die aktuellste Version. Kann ich auch manuell updaten?

deepblue120 commented 4 months ago

Kommando zurück. Als Beta Update ist v1.1.2 vorhanden. Werde ich sofort testen.

JonasJoKuJonas commented 4 months ago

eigentlich sollte das update als normales update angezeigt werden

deepblue120 commented 4 months ago

Egal. Funktioniert wieder wie es soll. Vielen Dank an Dich für Deine schnelle Hilfe.