scaarup / aula

Fetches information from Aula about your children
GNU General Public License v3.0
54 stars 14 forks source link

Error on setup: Error Config flow could not be loaded: {"message":"Invalid handler specified"} #100

Closed wormiedk closed 1 year ago

wormiedk commented 1 year ago

Describe the bug or problem (In Danish is OK) Ved opsætning af integration fåes: Error Config flow could not be loaded: {"message":"Invalid handler specified"} Jeg har haft den til at virke men slettede den for at prøve at geninstallere da den holdt op med at virke

Please answer the following

Please provide debug log from the integration Kan ikke installere :)

scaarup commented 1 year ago

Du kan stadig hive debug log ud, selvom config flowet fejler.

wormiedk commented 1 year ago

Super. Så kommer fejl i log her:

Logger: homeassistant.config_entries
Source: config_entries.py:863
First occurred: 10:01:42 (1 occurrences)
Last logged: 10:01:42

Error occurred loading flow for integration aula: cannot import name 'async_get_registry' from 'homeassistant.helpers.entity_registry' (/usr/src/homeassistant/homeassistant/helpers/entity_registry.py)
scaarup commented 1 year ago

Jeg kan ikke se nogen debug linjer. Du skal lige have debug slået til på integrationen, restart HA og prøv at add den igen.

Du oplyser dog, at du kører en beta version af HA. Det første jeg vil foreslå dig, er selvfølgelig at forsøge med en stable version først.

bogolob commented 1 year ago

The async_get_registry call has been deprecated 2 years ago and was removed in 2023.5:

image

The Aula plugin just needs a trivial replacement of async_get_registry to async_get, since that is all that the old function did anyway:

image

scaarup commented 1 year ago

Thanks @bogolob

Very good info 👍

Will publish a fix soon.

scaarup commented 1 year ago

@wormiedk vil du teste v0.1.33? Er ude som pre-release/beta nu.

bogolob commented 1 year ago

I upgraded my Homeassistant and Aula plugins to 2023.5b05 and 0.1.33 and the integration works.

scaarup commented 1 year ago

I upgraded my Homeassistant and Aula plugins to 2023.5b05 and 0.1.33 and the integration works.

Awesome 👌🏻. Did you also test the config flow?

wormiedk commented 1 year ago

Config flow virker nu også :)

scaarup commented 1 year ago

Tak begge :) Så lukker vi denne.