Skip to content
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

Unable to setup integration; cannot import name 'PredictionBase' #139

Closed
jkaberg opened this issue Aug 12, 2022 · 2 comments
Closed

Unable to setup integration; cannot import name 'PredictionBase' #139

jkaberg opened this issue Aug 12, 2022 · 2 comments
Labels
bug Something isn't working

Comments

@jkaberg
Copy link

jkaberg commented Aug 12, 2022

When trying to setup the integration the following exception is thrown at console

hast_1          | 2022-08-12 11:24:36 ERROR (MainThread) [homeassistant.config_entries] Error occurred loading configuration flow for integration peaqev: cannot import name 'PredictionBase' from 'peaqevcore.services.prediction.prediction' (/usr/local/lib/python3.10/site-packages/peaqevcore/services/prediction/prediction.py)

hass-peaq: 1.6.1
hass: 2022.7.7

Should this be Prediction @ https://github.com/elden1337/peaqev-core/blob/main/Peaqevcore/services/prediction/prediction.py#L7 and https://github.com/elden1337/hass-peaq/blob/main/custom_components/peaqev/peaqservice/prediction/prediction.py#L3?

@elden1337
Copy link
Owner

Woops! Will check asap!

@elden1337 elden1337 added the bug Something isn't working label Aug 12, 2022
@elden1337 elden1337 self-assigned this Aug 12, 2022
elden1337 pushed a commit that referenced this issue Aug 12, 2022
@elden1337
Copy link
Owner

Hope this helps. It did on my instance.
https://github.com/elden1337/hass-peaq/releases/tag/v1.7.0

@elden1337 elden1337 removed their assignment May 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants