This PR fixes event propagation to ensure that sensors, such as parasoll door sensors, are updated instantly.
What does this fix?
This code addresses the following exception, which occurs when an asynchronous function is called from a thread while Home Assistant expects the non-asynchronous function to be called:
2024-05-21 12:27:26.607 ERROR (Thread-9) [custom_components.dirigera_platform] Detected that custom integration 'dirigera_platform' calls async_write_ha_state from a thread at custom_components/dirigera_platform/base_classes.py, line 81: listener.async_schedule_update_ha_state(force_refresh). Please report it to the author of the 'dirigera_platform' custom integration.
Description
This PR fixes event propagation to ensure that sensors, such as parasoll door sensors, are updated instantly.
What does this fix?
This code addresses the following exception, which occurs when an asynchronous function is called from a thread while Home Assistant expects the non-asynchronous function to be called: