Describe the bug
When trying to call the button press service on any of the shortcuts an error is displayed:
"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 shortcut in Dream Home app.
Got to the device in Home Assistant and find the shortcut button in the list of entities.
Try pressing it.
Expected behavior
Shortcut button is pressed without an error and shortcut action runs.
Describe the bug When trying to call the button press service on any of the shortcuts an error is displayed:
"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
Expected behavior Shortcut button is pressed without an error and shortcut action runs.
Screenshots
Additional Information