home-assistant / core

:house_with_garden: Open source home automation that puts local control and privacy first.
https://www.home-assistant.io
Apache License 2.0
73.51k stars 30.71k forks source link

BSBLAN integration could not setup platform #125451

Closed liudger closed 5 days ago

liudger commented 2 months ago

The problem

The integration can't setup the device/platform climate due to error. key error Mac. This is solved in commit #124508 I guess this was not in the core 2024.9.1 release

2024-09-06 20:30:49.315 ERROR (MainThread) [homeassistant.components.climate] Error while setting up bsblan platform for climate
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 361, in _async_setup_platform
    await asyncio.shield(awaitable)
  File "/usr/src/homeassistant/homeassistant/components/bsblan/climate.py", line 53, in async_setup_entry
    BSBLANClimate(
  File "/usr/src/homeassistant/homeassistant/components/bsblan/climate.py", line 82, in __init__
    super().__init__(data.coordinator, data)
  File "/usr/src/homeassistant/homeassistant/components/bsblan/entity.py", line 26, in __init__
    mac = self.coordinator.config_entry.data["mac"]
          ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^
KeyError: 'Mac'

What version of Home Assistant Core has the issue?

core-2024.9.1

What was the last working version of Home Assistant Core?

core-2024.8.*

What type of installation are you running?

Home Assistant OS

Integration causing the issue

BSBLAN

Link to integration documentation on our website

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

Diagnostics information

config_entry-bsblan-01J74B9W5G5N6D18BBETG5HPM0.json

Example YAML snippet

No response

Anything in the logs that might be useful for us?

2024-09-06 20:30:49.315 ERROR (MainThread) [homeassistant.components.climate] Error while setting up bsblan platform for climate
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 361, in _async_setup_platform
    await asyncio.shield(awaitable)
  File "/usr/src/homeassistant/homeassistant/components/bsblan/climate.py", line 53, in async_setup_entry
    BSBLANClimate(
  File "/usr/src/homeassistant/homeassistant/components/bsblan/climate.py", line 82, in __init__
    super().__init__(data.coordinator, data)
  File "/usr/src/homeassistant/homeassistant/components/bsblan/entity.py", line 26, in __init__
    mac = self.coordinator.config_entry.data["mac"]
          ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^
KeyError: 'Mac'

Additional information

No response

home-assistant[bot] commented 2 months ago

bsblan documentation bsblan source

mib1185 commented 2 months ago

124508 wasn't marked correct as bugfix not added to the milestone for 2024.9.1 - i've tagged it now for 2024.9.2