mvdwetering / huesyncbox

Custom integration for Home Assistant to control the Philips Hue Play HDMI Sync Box 4K or 8K
Apache License 2.0
113 stars 8 forks source link

Can't make this integration to work #23

Closed marcioibm closed 3 years ago

marcioibm commented 3 years ago

Describe the bug Even though the installation goes fine, it never starts due to an error

To Reproduce Steps to reproduce the behavior:

  1. Install HACS method
  2. Check for logs and seeerror

Environment

Additional info

Logger: homeassistant Source: custom_components/huesyncbox/huesyncbox.py:125 Integration: Philips Hue Play HDMI Sync Box (documentation, issues) First occurred: 3:04:18 AM (1 occurrences) Last logged: 3:04:18 AM

Error doing job: Task exception was never retrieved Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 153, in async_init flow, result = await task File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 171, in _async_init flow = await self.async_create_flow(handler, context=context, data=data) File "/usr/src/homeassistant/homeassistant/config_entries.py", line 710, in async_create_flow integration.get_platform("config_flow") File "/usr/src/homeassistant/homeassistant/loader.py", line 524, in get_platform cache[full_name] = self._import_platform(platform_name) File "/usr/src/homeassistant/homeassistant/loader.py", line 529, in _import_platform return importlib.import_module(f"{self.pkg_path}.{platform_name}") File "/usr/local/lib/python3.9/importlib/init.py", line 127, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "", line 1030, in _gcd_import File "", line 1007, in _find_and_load File "", line 972, in _find_and_load_unlocked File "", line 228, in _call_with_frames_removed File "", line 1030, in _gcd_import File "", line 1007, in _find_and_load File "", line 986, in _find_and_load_unlocked File "", line 680, in _load_unlocked File "", line 850, in exec_module File "", line 228, in _call_with_frames_removed File "/config/custom_components/huesyncbox/init.py", line 37, in from .huesyncbox import PhilipsHuePlayHdmiSyncBox, async_remove_entry_from_huesyncbox File "/config/custom_components/huesyncbox/huesyncbox.py", line 125, in async def async_register_aiohuesyncbox(hass, api: aiohuesyncbox.HueSyncBox): AttributeError: module 'aiohuesyncbox' has no attribute 'HueSyncBox'

Does any see this behavior?

mvdwetering commented 3 years ago

Hmm, I have not seen that one and I don't really understand what is happening there.

Could you check which version of aiohuesyncbox is installed in the HA environment? Also what is your Python version?

marcioibm commented 3 years ago

Your comment and the last update made it work! thanks for the support and for this amazing integration!

mvdwetering commented 3 years ago

Hmm, not sure why that update helped for this specific issue, but glad it fixed your issue :)