BenPru / luxtronik

Luxtronik integration for Home Assistant
MIT License
66 stars 23 forks source link

Error occurred loading flow for integration luxtronik2 #184

Closed woozar closed 8 months ago

woozar commented 8 months ago

I was running 2023.10.20-Alpha (I am 90% sure, it was 10.20) and it was working fine. Then i updated to 2023.10.31-Beta and the integration did no longer start after restarting home assistant. Then I downgraded to 2023.10.20-Alpha and rebootet home assistant and I get the same error.

See Home Assistant Core logs:

Error occurred loading flow for integration luxtronik2: Exception importing custom_components.luxtronik2.config_flow 1:55:14 PM – (ERROR) config_entries.py Unexpected exception importing platform custom_components.luxtronik2.config_flow 1:55:14 PM – (ERROR) loader.py Setup failed for custom integration luxtronik2: Unable to import component: Exception importing custom_components.luxtronik2 1:54:55 PM – (ERROR) setup.py Unexpected exception importing component custom_components.luxtronik2 1:54:55 PM – (ERROR) loader.py

Please help

qubabos commented 8 months ago

Same here. No other beta or alpha version downloaded again works. Right now after remove 10.31 and downgrade to any version doesnt helps

colognebroker commented 8 months ago

yes you need a backup

woozar commented 8 months ago

Which part of the backup do i nee, to restore the custom integration?

Ronicon98 commented 8 months ago

Same problem. Downgrade to 2023.10.20 did not resolve the issue.

colognebroker commented 8 months ago

Use the fix wich benpru provided in const.py

Then it works

Am 01.11.2023 um 19:50 schrieb Ronicon98 @.***>:

Same problem. Downgrade to 2023.10.20 did not resolve the issue.

— Reply to this email directly, view it on GitHub https://github.com/BenPru/luxtronik/issues/184#issuecomment-1789479654, or unsubscribe https://github.com/notifications/unsubscribe-auth/AFSVZLTEELZUWJCI5Q7YFVLYCKKYRAVCNFSM6AAAAAA6ZIH6LSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTOOBZGQ3TSNRVGQ. You are receiving this because you commented.

qubabos commented 8 months ago

Where do I find this fix?

colognebroker commented 8 months ago

https://github.com/BenPru/luxtronik/commit/fc7bdf5c063678b3425278b66bb62480d56e5666

Am 01.11.2023 um 19:59 schrieb qubabos @.***>:

Where do I find this fix?

— Reply to this email directly, view it on GitHub https://github.com/BenPru/luxtronik/issues/184#issuecomment-1789491873, or unsubscribe https://github.com/notifications/unsubscribe-auth/AFSVZLWPOPJC6OYN6GCZUB3YCKL2FAVCNFSM6AAAAAA6ZIH6LSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTOOBZGQ4TCOBXGM. You are receiving this because you commented.

woozar commented 8 months ago

"Access to GitHub was denied" if I click that link

woozar commented 8 months ago

2023.11.1-Beta from HACS fixes this issue. Thank you <3