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

Can't delete or update. #116

Closed
monsieurlatte opened this issue Apr 6, 2022 · 10 comments
Closed

Can't delete or update. #116

monsieurlatte opened this issue Apr 6, 2022 · 10 comments

Comments

@monsieurlatte
Copy link

monsieurlatte commented Apr 6, 2022

When I try to delete the integration in HA 2022.4 I get this.

ImportError: cannot import name 'DysonPurifierHumidifyCoolFormaldehyde' from 'libdyson' (/usr/local/lib/python3.9/site-packages/libdyson/init.py)

If I try to set it up I get this for both.

Setup failed for custom integration dyson_cloud: Unable to import component: cannot import name 'DysonPurifierHumidifyCoolFormaldehyde' from 'libdyson' (/usr/local/lib/python3.9/site-packages/libdyson/init.py)

@Flameeyes
Copy link
Contributor

This is because there's two different required versions for dyson_local and dyson_cloud — remove dyson_cloud and it should force an update to a compatible libdyson for dyson_local.

@townsmcp
Copy link

townsmcp commented Apr 6, 2022

I don’t have Dyson Cloud installed so don’t think that is the problem

@Flameeyes
Copy link
Contributor

Hmm, that's interesting then — it sounds like it's not updating libdyson from the git version (that's what the error means: it's using a too-old version of libdyson.)

@monsieurlatte
Copy link
Author

Hmm I finally deleted everything, in HACS and HA. THen added dyson local only via HACS (16.3) and in HA when I go to run it it says this can't be run from the UI.

@Flameeyes
Copy link
Contributor

(Discussion is on #115, with solution.)

@monsieurlatte
Copy link
Author

The pip commands work great, only issue is it changed some of my stuff, I lost the auto switch (fixed by just changing my code for my controls for it).

@Anto79-ops
Copy link

@monsieurlatte could you please tell me where you typed those pip commands? Did you just type them into the terminal in HAOS? I tried that last night and it got some meessage like uninstallted slopped because libdyson is not installed and then when I tried the second pip command, it was stuck tring to install some dependcies and kepy looping (with lots of red lines of text) and then eventually I just ctrl + C is stopped the process. If you could shed some light how you ran those pip lines in HAOS (with HACS), that would be awesome!

@monsieurlatte
Copy link
Author

I used the add on called portainer, then connected to home assistant through that, the HAOS terminal is not the same thing.

@Anto79-ops
Copy link

Anto79-ops commented Apr 7, 2022

@monsieurlatte thank you for this information. Just looked into Portainer add-on and comes with lots of warning thus it seems a bit too hackey for me....ok, guess I'll wait for something easier or perhaps the awesome developers will issue an update/fix soon.

@Kakise
Copy link
Collaborator

Kakise commented Apr 8, 2022

The pip commands work great, only issue is it changed some of my stuff, I lost the auto switch (fixed by just changing my code for my controls for it).

The auto switch disappearing is intended, it was replaced by the fan service a few updates ago

@monsieurlatte thank you for this information. Just looked into Portainer add-on and comes with lots of warning thus it seems a bit too hackey for me....ok, guess I'll wait for something easier or perhaps the awesome developers will issue an update/fix soon.

0.16.4 should fix these problems

@Kakise Kakise closed this as completed Apr 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants