core: Hue Integration stopped working with 2021.12.0b0 - now on 12.0b1 and it is still erroring out

The problem

Re-opening Issue #61034

On 12.0b1 now and Hue integration is still failing for me. See below error from log.

Logger: homeassistant.config_entries
Source: helpers/device_registry.py:131
First occurred: 4:46:25 PM (1 occurrences)
Last logged: 4:46:25 PM

Error setting up entry Hue Bridge 0017882c17d4 for hue
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 313, in async_setup
    result = await component.async_setup_entry(hass, self)  # type: ignore
  File "/usr/src/homeassistant/homeassistant/components/hue/__init__.py", line 90, in async_setup_entry
    device_registry.async_get_or_create(
  File "/usr/src/homeassistant/homeassistant/helpers/device_registry.py", line 329, in async_get_or_create
    connections = _normalize_connections(connections)
  File "/usr/src/homeassistant/homeassistant/helpers/device_registry.py", line 877, in _normalize_connections
    return {
  File "/usr/src/homeassistant/homeassistant/helpers/device_registry.py", line 878, in <setcomp>
    (key, format_mac(value)) if key == CONNECTION_NETWORK_MAC else (key, value)
  File "/usr/src/homeassistant/homeassistant/helpers/device_registry.py", line 131, in format_mac
    if len(to_test) == 17 and to_test.count(":") == 5:
TypeError: object of type 'NoneType' has no len()

What version of Home Assistant Core has the issue?

core-2021.12.0b1

What was the last working version of Home Assistant Core?

core-2021.11.5

What type of installation are you running?

Home Assistant OS

Integration causing the issue

Philips Hue

Link to integration documentation on our website

https://www.home-assistant.io/integrations/hue/

Example YAML snippet

No response

Anything in the logs that might be useful for us?

No response

Additional information

I believe I have v1 bridge since it is about 5 years old, and all lights are connected and available - they can be controlled and scenes set form the Hue app. Just not from Home assistant after 12.0b0.

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Comments: 18 (8 by maintainers)

Most upvoted comments

Just wanted to report back that with 12.0b2 everything is now good and fixed. Thanks for all the work @marcelveldt and @balloob ha-hue

Seems like this was removed from the beta version, I hope it comes back:

https://www.home-assistant.io/integrations/hue/#allow-unreachable-bulbs-to-report-their-state-correctly