Skip to content

Integration failing to setup #162

Description

@AngeloFiat

The Cync light integration will no longer load in my HA environment. Reloading has no effect. I turned on debug logging and attached snippets below. The logs say to report it to the developer, so here I am. Happy to try any suggestions to troubleshoot if you think it is specific to my implementation. Using Cunc Light version 1.0.1

2026-03-21 15:44:16.044 WARNING (MainThread) [homeassistant.util.loop] Detected blocking call to import_module with args ('custom_components.cync_lights.light',) inside the event loop by custom integration 'cync_lights' at custom_components/cync_lights/init.py, line 19: await hass.config_entries.async_forward_entry_setups(entry, PLATFORMS) (offender: /usr/src/homeassistant/homeassistant/loader.py, line 1312: return importlib.import_module(f"{self.pkg_path}.{platform_name}")), please report it to the author of the 'cync_lights' custom integration
For developers, please see https://developers.home-assistant.io/docs/asyncio_blocking_operations/#import_module

2026-03-21 15:44:16.045 ERROR (MainThread) [homeassistant.config_entries] Error setting up entry cync_lights_redacted for cync_lights
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 769, in __async_setup_with_context
result = await component.async_setup_entry(hass, self)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/cync_lights/init.py", line 19, in async_setup_entry
await hass.config_entries.async_forward_entry_setups(entry, PLATFORMS)
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 2683, in async_forward_entry_setups
await integration.async_get_platforms(platforms)
File "/usr/src/homeassistant/homeassistant/loader.py", line 1193, in async_get_platforms
import_future.result()
~~~~~~~~~~~~~~~~~~~~^^
File "/usr/src/homeassistant/homeassistant/loader.py", line 1193, in async_get_platforms
import_future.result()
~~~~~~~~~~~~~~~~~~~~^^
File "/usr/src/homeassistant/homeassistant/loader.py", line 1193, in async_get_platforms
import_future.result()
~~~~~~~~~~~~~~~~~~~~^^
[Previous line repeated 1 more time]
File "/usr/src/homeassistant/homeassistant/loader.py", line 1181, in async_get_platforms
platforms.update(self._load_platforms(platform_names))
~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/loader.py", line 1106, in _load_platforms
platform_name: self._load_platform(platform_name)
~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/loader.py", line 1280, in _load_platform
cache[full_name] = self._import_platform(platform_name)
~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/loader.py", line 1312, in _import_platform
return importlib.import_module(f"{self.pkg_path}.{platform_name}")
~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/util/loop.py", line 201, in protected_loop_func
return func(*args, **kwargs)
File "/usr/local/lib/python3.14/importlib/init.py", line 88, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "", line 1398, in _gcd_import
File "", line 1371, in _find_and_load
File "", line 1342, in _find_and_load_unlocked
File "", line 938, in _load_unlocked
File "", line 759, in exec_module
File "", line 491, in _call_with_frames_removed
File "/config/custom_components/cync_lights/light.py", line 4, in
from homeassistant.components.light import (ATTR_BRIGHTNESS, ATTR_COLOR_TEMP, ATTR_RGB_COLOR, ColorMode, LightEntity)
ImportError: cannot import name 'ATTR_COLOR_TEMP' from 'homeassistant.components.light' (/usr/src/homeassistant/homeassistant/components/light/init.py)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions