Skip to content

Hon, not works anymore with hass #309

Open

Description

@unecc

Hi, some problem here? What happends?
Hon not works.

Activity

  1. casueros commented on Jun 24, 2025

    @casueros

    I have the same problem!. HOn is not working

  2. whiskas85 commented on Jun 25, 2025

    @whiskas85

    same for me...

    Nessun dispositivo o entità (no device or entity)
    Configurazione non riuscita: (configuration not done)
    Controlla i registri (check the registry)

  3. hoornet commented on Jun 25, 2025

    @hoornet

    i installed it a few minutes ago. DOesn't work

  4. pawel-wis commented on Jun 25, 2025

    @pawel-wis

    In my case it is funciton name typo. i fixed it manually but there still a problem with http client

  5. Samaze123 commented on Jun 27, 2025

    @Samaze123

    I have this log

    Traceback (most recent call last):
      File "/usr/src/homeassistant/homeassistant/config_entries.py", line 749, in __async_setup_with_context
        result = await component.async_setup_entry(hass, self)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      File "/config/custom_components/hon/__init__.py", line 58, in async_setup_entry
        hass.config_entries.async_forward_entry_setup(entry, platform)
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    AttributeError: 'ConfigEntries' object has no attribute 'async_forward_entry_setup'. Did you mean: 'async_forward_entry_setups'?
    
  6. pawel-wis commented on Jun 27, 2025

    @pawel-wis

    I changed function name to "...setups" in source code but http crashed then so I gave up

  7. pawel-wis commented on Jun 29, 2025

    @pawel-wis

    So I tried to fix function name from async_forward_entry_setup to async_forward_entry_setups and I got following errors. Now it looks that some module is not found. Anyway integration is added but in logs I can see this trace.

    `Logger: homeassistant
    Source: util/loop.py:201
    First occurred: 7:02:42 PM (6 occurrences)
    Last logged: 7:02:42 PM
    Error doing job: Task exception was never retrieved (None)

    Traceback (most recent call last):
    File "/usr/src/homeassistant/homeassistant/config_entries.py", line 2568, in async_forward_entry_setups
    await integration.async_get_platforms(platforms)
    File "/usr/src/homeassistant/homeassistant/loader.py", line 1163, in async_get_platforms
    import_future.result()
    ~~~~~~~~~~~~~~~~~~~~^^
    File "/usr/src/homeassistant/homeassistant/loader.py", line 1163, in async_get_platforms
    import_future.result()
    ~~~~~~~~~~~~~~~~~~~~^^
    File "/usr/src/homeassistant/homeassistant/loader.py", line 1163, in async_get_platforms
    import_future.result()
    ~~~~~~~~~~~~~~~~~~~~^^
    [Previous line repeated 2 more times]
    File "/usr/src/homeassistant/homeassistant/loader.py", line 1133, in async_get_platforms
    await self.hass.async_add_import_executor_job(
    self._load_platforms, platform_names
    )
    File "/usr/local/lib/python3.13/concurrent/futures/thread.py", line 59, in run
    result = self.fn(*self.args, **self.kwargs)
    File "/usr/src/homeassistant/homeassistant/loader.py", line 1076, in _load_platforms
    platform_name: self._load_platform(platform_name)
    ~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^
    File "/usr/src/homeassistant/homeassistant/loader.py", line 1250, in _load_platform
    cache[full_name] = self._import_platform(platform_name)
    ~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^
    File "/usr/src/homeassistant/homeassistant/loader.py", line 1282, 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.13/importlib/init.py", line 88, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
    ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    File "", line 1387, in _gcd_import
    File "", line 1360, in _find_and_load
    File "", line 1324, in _find_and_load_unlocked
    ModuleNotFoundError: No module named 'custom_components.hon.s'`

  8. lordraw77 commented on Jun 30, 2025

    @lordraw77

    i have same problem
    Traceback (most recent call last):
    File "/usr/src/homeassistant/homeassistant/config_entries.py", line 749, in __async_setup_with_context
    result = await component.async_setup_entry(hass, self)
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    File "/config/custom_components/hon/init.py", line 58, in async_setup_entry
    hass.config_entries.async_forward_entry_setup(entry, platform)
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    AttributeError: 'ConfigEntries' object has no attribute 'async_forward_entry_setup'. Did you mean: 'async_forward_entry_setups'?

  9. pawel-wis commented on Jun 30, 2025

    @pawel-wis

    Yes. You can change it in ini.py file in a component directory. In my case integration is added successfully but no devices are detected due to errors I have described previously.

  10. baralien commented on Jul 2, 2025

    @baralien

    Change async_forward_entry_setup to async_forward_entry_setups and also add square brackets around platform so should be

    hass.config_entries.async_forward_entry_setups(entry, [platform])

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