nikshriv / cync_lights

Home Assistant Integration for controlling Cync switches, plugs, and bulbs
149 stars 50 forks source link

Error and warning in the logs when increasing or decreasing brightness #101

Open gjobin opened 1 month ago

gjobin commented 1 month ago

Logs growing fast using when controlling the lights using some automation.

2024-05-31 13:52:33.174 WARNING (Thread-2 (_start_tcp_client)) [homeassistant.helpers.frame] Detected that custom integration 'cync_lights' calls async_write_ha_state from a thread at custom_components/cync_lights/cync_hub.py, line 498: self._update_callback(), please report it to the author of the 'cync_lights' custom integration

2024-05-31 13:52:33.174 ERROR (Thread-2 (_start_tcp_client)) [custom_components.cync_lights.cync_hub] RuntimeError: Detected that custom integration 'cync_lights' calls async_write_ha_state from a thread at custom_components/cync_lights/cync_hub.py, line 498: self._update_callback(). Please report it to the author of the 'cync_lights' custom integration.
jamesdlyn commented 4 days ago

Similar to issue #96 . Should be resolved with commits on May 20, 2024.

gjobin commented 4 days ago

Will update and open a new issue if it is not fixed. You may close this one in the meantime. TY!