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 113 forks source link

Integration broken after 2024.5 upgrade #534

Closed mifraburneo closed 6 months ago

mifraburneo commented 6 months ago

After upgrading HA to 2024.5.X integration is not allowing sending commands to the Dreame application. Data can be read by the integration normally but only when reloading the integration. Nonetheless the issue I’m referring here comes when trying to send any command.

To Reproduce Send any command to the app using HA integration (such as selecting a cleaning mode like mopping)

Expected behavior I expect the command to be executed

Additional Information (please complete the following information)

Failed to call service select/select_option. Detected that custom integration 'dreame_vacuum' calls async_write_ha_state from a thread at custom_components/dreame_vacuum/vacuum.py, line 643: self.async_write_ha_state(). Please report it to the author of the 'dreame_vacuum' custom integration.

Tasshack commented 6 months ago

https://github.com/Tasshack/dreame-vacuum/issues/529

mifraburneo commented 6 months ago

Sorry!! Didn’t see that one. Thanks!