Integration Fails with HA Core 2024.1 Release #18

Closed
opened 2025-07-08 08:33:20 -04:00 by AtHeartEngineer · 0 comments

Originally created by @BigThunderSR on 1/3/2024

Integration fails with HA Core 2024.1 release and the following error is logged:

Logger: homeassistant.components.sensor
Source: helpers/entity_platform.py:360
Integration: Sensor (documentation, issues)
First occurred: 3:02:03 PM (2 occurrences)
Last logged: 3:02:05 PM

Error while setting up rd200_ble platform for sensor
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 360, in _async_setup_platform
    await asyncio.shield(task)
  File "/config/custom_components/rd200_ble/sensor.py", line 132, in async_setup_entry
    val.native_unit_of_measurement = VOLUME_PICOCURIE
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "<string>", line 4, in __setattr__
dataclasses.FrozenInstanceError: cannot assign to field 'native_unit_of_measurement'
*Originally created by @BigThunderSR on 1/3/2024* Integration fails with HA Core 2024.1 release and the following error is logged: ``` Logger: homeassistant.components.sensor Source: helpers/entity_platform.py:360 Integration: Sensor (documentation, issues) First occurred: 3:02:03 PM (2 occurrences) Last logged: 3:02:05 PM Error while setting up rd200_ble platform for sensor Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 360, in _async_setup_platform await asyncio.shield(task) File "/config/custom_components/rd200_ble/sensor.py", line 132, in async_setup_entry val.native_unit_of_measurement = VOLUME_PICOCURIE ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "<string>", line 4, in __setattr__ dataclasses.FrozenInstanceError: cannot assign to field 'native_unit_of_measurement' ```
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github/rd200v2#18