Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

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

Error occurred loading flow #12

Closed
CameronMease opened this issue Jan 22, 2024 · 9 comments
Closed

Error occurred loading flow #12

CameronMease opened this issue Jan 22, 2024 · 9 comments

Comments

@CameronMease
Copy link

I cannot get HA-sma working. I've tried both editing configuration.yml and adding in the GUI. Same results either way. The error log consists of the following:

2024-01-22 12:02:16.647 ERROR (MainThread) [homeassistant.config_entries] Error occurred loading flow for integration sma_webbox: cannot import name 'WEBBOX_PORT' from 'custom_components.sma_webbox.sma_webbox' (/config/custom_components/sma_webbox/sma_webbox/init.py)

If adding SMA Webbox from the GUI the popup displays (before entering any data):

error

My version of Home Assistant is 2024.1.4 and it is running in Docker, on Linux.

Thank you

@jpcornil-git
Copy link
Owner

Hi Cameron,
Could you try to run the following command from your docker instance already and report results:

docker exec -it homeassistant /bin/bash
bash-5.1# python3 custom_components/sma_webbox/sma_webbox.py <webbox ip_address>

Cheers,
jpc

@CameronMease
Copy link
Author

CameronMease commented Jan 22, 2024 via email

@jpcornil-git
Copy link
Owner

OK, i.e. you see meaningful data logs I guess (was expected unless there was an issue with your hacs/custom_components install for some reasons or a webbox interop issue)
=> can you try with a 2023.12.3 test instances (version I'm currently running on) iso 2024.1.4 ?

If OK with the former but not the latter I'll investigate further.

@CameronMease
Copy link
Author

CameronMease commented Jan 22, 2024 via email

@jpcornil-git
Copy link
Owner

jpcornil-git commented Jan 27, 2024

Hi Cameron,
I did a fresh docker install using 2024.1.4, installed HACS within the container then this integration and I didn't saw any issue.
I also upgraded my own HA to 2024.1.5 without issues either.
How did you install the SMA Webbox component ?
Could you also upload logs from the bash command above ?
Cheers,
jpc

@CameronMease
Copy link
Author

CameronMease commented Jan 28, 2024 via email

@jpcornil-git
Copy link
Owner

It should be sma_webbox (not web_box), that's why the import fails

├── custom_components
...
│   └── sma_webbox/
│       ├── config_flow.py
│       ├── const.py
│       ├── __init__.py
│       ├── manifest.json
│       ├── sensor.py
│       ├── sma_webbox.py
│       ├── strings.json
│       └── translations
│           ├── en.json
│           └── fr.json
...

You should consider to use HACS to manage component installation but also update from the UI

Cheers,
jpc

@CameronMease
Copy link
Author

CameronMease commented Jan 29, 2024 via email

@jpcornil-git
Copy link
Owner

Great to hear this and thanks for the feedback.
Not sure then why it makes a difference (HACS is basically checking out a repo in custom_components as well) but as I said moving forward it will help you to manage this/other integrations more effectively.
Cheers,
jpc

Repository owner locked and limited conversation to collaborators Jan 29, 2024
@jpcornil-git jpcornil-git converted this issue into discussion #13 Jan 29, 2024

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants