Tasshack / dreame-vacuum

Home Assistant integration for Dreame robot vacuums with map support
https://community.home-assistant.io/t/custom-component-dreame-vacuum
MIT License
898 stars 112 forks source link

Bugfix to allow local connection to be made #630

Closed Zirafarafa closed 4 months ago

Zirafarafa commented 4 months ago

The addition of the dreame cloud connection type caused local connection flow to break. This change fixes it.

See https://github.com/Tasshack/dreame-vacuum/discussions/618

Zirafarafa commented 4 months ago

Note, this is a basic hack to get the code working. It may be more appropriate to explicitly deal with local, mi and dreame connections instead of implicily based on parameters passed, but I am not at all familiar with the code flow

Tasshack commented 4 months ago

You don't need to do this to get this functionality. Just set account_type as mi and do not pass any password or username.

Zirafarafa commented 3 weeks ago

Coming back to this as I had to remove and re-add the vacuum - the username and password are required fields, so I cannot connect using account_type as "mi", and I also cannot connect locally.