Skip to content

[BUG] Addon fails to setup #189

@adamnmcc

Description

@adamnmcc

Describe the bug
when trying to setup the addon, i go through the process of adding from HACS, restarting, adding my credentials and then clicking. when i check the Devices and services section the Hive addon reports it failed to setup.

Source: config_entries.py:761
First occurred: 6 January 2026 at 21:54:18 (2 occurrences)
Last logged: 12:08:32

Error setting up entry adam@mccartney.ie for hive
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 761, in __async_setup_with_context
    result = await component.async_setup_entry(hass, self)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/hive/__init__.py", line 52, in async_setup_entry
    identifiers={(DOMAIN, devices["parent"][0]["device_id"])},
                          ~~~~~~~^^^^^^^^^^
KeyError: 'parent'

Expected behaviour
the Addon should setup and show my hive components.

Desktop (please complete the following information):

  • OS: Linux
  • Browser Chrome
  • Version: Hive component: 2025.11.2 | HASS: 2025.12.3

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions