Closed pedolsky closed 2 weeks ago
Edit: fixed
https://github.com/home-assistant/core/issues/120036#issuecomment-2209475200
I'm on 2024.6.4 and I get
Logger: homeassistant.components.sensor Source: helpers/entity_platform.py:366 integration: Sensor (documentation, issues) First occurred: 20:55:54 (1 occurrences) Last logged: 20:55:54 Error while setting up tradfri platform for sensor
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 366, in _async_setup_platform
await asyncio.shield(awaitable)
File "/usr/src/homeassistant/homeassistant/components/tradfri/sensor.py", line 162, in async_setup_entry
TradfriSensor(
File "/usr/src/homeassistant/homeassistant/components/tradfri/sensor.py", line 186, in __init__
super().__init__(
File "/usr/src/homeassistant/homeassistant/components/tradfri/base_class.py", line 65, in __init__
sw_version=info.firmware_version,
^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/pytradfri/device/__init__.py", line 177, in firmware_version
return self.raw[ATTR_DEVICE_FIRMWARE_VERSION]
~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
KeyError: '3'
Logger: homeassistant.components.light Source: helpers/entity_platform.py:374 integration: Light (documentation, issues) First occurred: 20:55:54 (1 occurrences) Last logged: 20:55:54 Error while setting up tradfri platform for light
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 374, in _async_setup_platform
await asyncio.gather(*pending)
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 633, in async_add_entities
for entity in new_entities:
File "/usr/src/homeassistant/homeassistant/components/tradfri/light.py", line 41, in <genexpr>
TradfriLight(
File "/usr/src/homeassistant/homeassistant/components/tradfri/light.py", line 65, in __init__
super().__init__(
File "/usr/src/homeassistant/homeassistant/components/tradfri/base_class.py", line 65, in __init__
sw_version=info.firmware_version,
^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/pytradfri/device/__init__.py", line 177, in firmware_version
return self.raw[ATTR_DEVICE_FIRMWARE_VERSION]
~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
KeyError: '3'
Logger: homeassistant.components.cover Source: helpers/entity_platform.py:374 integration: Cover (documentation, issues) First occurred: 20:55:54 (1 occurrences) Last logged: 20:55:54 Error while setting up tradfri platform for cover
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 374, in _async_setup_platform
await asyncio.gather(*pending)
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 633, in async_add_entities
for entity in new_entities:
File "/usr/src/homeassistant/homeassistant/components/tradfri/cover.py", line 31, in <genexpr>
TradfriCover(
File "/usr/src/homeassistant/homeassistant/components/tradfri/cover.py", line 53, in __init__
super().__init__(
File "/usr/src/homeassistant/homeassistant/components/tradfri/base_class.py", line 65, in __init__
sw_version=info.firmware_version,
^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/pytradfri/device/__init__.py", line 177, in firmware_version
return self.raw[ATTR_DEVICE_FIRMWARE_VERSION]
~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
KeyError: '3'
This also seems to happen to me on 2024.7.1
can confirm 2024.7.0 and 2024.7.1 also affected
All my lights: "This entity is no longer being provided by the tradfri integration. If the entity is no longer in use, delete it in settings."
And I also confirm on 2024.7.2. I also get the message: "This entity is no longer being provided by the tradfri integration. If the entity is no longer in use, delete it in settings."
Solved with v2024.7.3 - thanks!
The problem
The Tradfri Integration fails to initialize so all devices became unavailable. Restart of Home Assistant and host reboot didn't help.
In the 2024.7 beta versions before I had countless aiocaop warnings and had to reload the integration.
What version of Home Assistant Core has the issue?
core-2024.7.0b10
What was the last working version of Home Assistant Core?
core-2024.6.3
What type of installation are you running?
Home Assistant Supervised
Integration causing the issue
Tradfri
Link to integration documentation on our website
https://www.home-assistant.io/integrations/tradfri/
Diagnostics information
No response
Example YAML snippet
No response
Anything in the logs that might be useful for us?
Additional information
I'm using the old IKEA hub.