Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RuntimeError #96

Open
MrJCleary opened this issue May 5, 2024 · 2 comments
Open

RuntimeError #96

MrJCleary opened this issue May 5, 2024 · 2 comments

Comments

@MrJCleary
Copy link

This error originated from a custom integration.

Logger: custom_components.cync_lights.cync_hub
Source: custom_components/cync_lights/cync_hub.py:106
integration: Cync Lights (documentation)
First occurred: 4:04:04 PM (2 occurrences)
Last logged: 4:04:20 PM

RuntimeError: Detected that custom integration 'cync_lights' calls async_write_ha_state from a thread at custom_components/cync_lights/cync_hub.py, line 638: self._update_callback(). Please report it to the author of the 'cync_lights' custom integration.

@NUIT-Jim
Copy link

NUIT-Jim commented Jun 4, 2024

also the following error:

None (<class 'custom_components.cync_lights.light.CyncRoomEntity'>) sets invalid supported color modes {<ColorMode.COLOR_TEMP: 'color_temp'>, <ColorMode.RGB: 'rgb'>, <ColorMode.BRIGHTNESS: 'brightness'>}, this will stop working in Home Assistant Core 2025.3, please report it to the author of the 'cync_lights' custom integration
None (<class 'custom_components.cync_lights.light.CyncSwitchEntity'>) sets invalid supported color modes {<ColorMode.COLOR_TEMP: 'color_temp'>, <ColorMode.RGB: 'rgb'>, <ColorMode.BRIGHTNESS: 'brightness'>}, this will stop working in Home Assistant Core 2025.3, please report it to the author of the 'cync_lights' custom integration

@jamesdlyn
Copy link

jamesdlyn commented Jul 15, 2024

This was fixed by changing all references to async_write_ha_state to schedule_update_ha_state instead in the following files:

binary_sensor.py
fan.py
light.py
switch.py

This should be reflected by the commits on May 20, 2024, so if you are encountering issues, try updating and restarting.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants