dreame-vacuum: Trigger button press from Automation throws an error
Describe the bug Not sure if this happened before or after upgrade to 2024.5 BUT I used to be able to control my vacuum shortcuts via a HA automation. This broke throwing the following error:
Error: Detected that custom integration 'dreame_vacuum' calls async_write_ha_state from a thread at custom_components/dreame_vacuum/vacuum.py, line 648: self.async_write_ha_state(). Please report it to the author of the 'dreame_vacuum' custom integration.
To Reproduce Create a HA automation that will trigger a button press tha will run a Dreame Shortcut
Expected behavior No error should be thrown, this was working before.
Screenshots
Additional Information (please complete the following information)
- Model Name : L20 Ultra
- Firmware Version [e.g. 1156]: v2.0.0b14
- Home Assistant Version: 2024.5
- Errors or warnings shown in the HA logs (if applicable): see screenshot
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Comments: 15 (6 by maintainers)
This a new feature added on HA 2024.5 to detect and block async calls from a thread and I will release a new Beta version to fix this issue very soon.