Skip to content

Conversation

@jleinenbach
Copy link
Owner

Some integrations (like HomeKit) use device identifiers with more than 2 elements (e.g., (domain, id, type)). The previous code assumed all identifiers were 2-tuples, causing ValueError when iterating.

Changes:

  • init.py: async_remove_config_entry_device() now handles variable-length identifiers
  • coordinator.py: Device registry update handler now handles variable-length identifiers
  • coordinator.py: Connection iteration also made defensive for consistency

This fix mirrors upstream PR agittins#727 (agittins/bermuda).

https://claude.ai/code/session_01LzNxUNSSL88K8KAb6tgdwJ

…#727)

Some integrations (like HomeKit) use device identifiers with more than
2 elements (e.g., (domain, id, type)). The previous code assumed all
identifiers were 2-tuples, causing ValueError when iterating.

Changes:
- __init__.py: async_remove_config_entry_device() now handles variable-length identifiers
- coordinator.py: Device registry update handler now handles variable-length identifiers
- coordinator.py: Connection iteration also made defensive for consistency

This fix mirrors upstream PR agittins#727 (agittins/bermuda).

https://claude.ai/code/session_01LzNxUNSSL88K8KAb6tgdwJ
@jleinenbach jleinenbach merged commit 7ac8f03 into main Jan 26, 2026
18 checks passed
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

Successfully merging this pull request may close these issues.

2 participants