OSRAM 4052899926110 only update but no light entity after zigbee2mqtt update

After an update of zigbee2mqtt, 2 of my OSRAM light strips are no longer available as light entities, only the update entity is still available. The following error message also appears:

Error 'some but not all values in the same group of inclusion 'color_mode' @ data[<color_mode>]' when processing MQTT discovery message topic: 'homeassistant/light/0x8418260000caa9df/light/config', message: '{'availability': [{'topic': 'zigbee2mqtt/bridge/state'}], 'brightness': True, 'brightness_scale': 254, 'command_topic': 'zigbee2mqtt/0x8418260000caa9df/set', 'device': {'identifiers': ['zigbee2mqtt_0x8418260000caa9df'], 'manufacturer': 'OSRAM', 'model': 'Flex RGBW (4052899926110)', 'name': '0x8418260000caa9df', 'sw_version': 'V1.03.07', 'via_device': 'zigbee2mqtt_bridge_0x00124b0018e24a4b'}, 'effect': True, 'effect_list': ['blink', 'breathe', 'okay', 'channel_change', 'finish_effect', 'stop_effect', 'colorloop', 'stop_colorloop'], 'json_attributes_topic': 'zigbee2mqtt/0x8418260000caa9df', 'max_mireds': 666, 'min_mireds': 125, 'name': None, 'object_id': '0x8418260000caa9df', 'origin': {'name': 'Zigbee2MQTT', 'sw_version': '1.37.1', 'support_url': 'https://www.zigbee2mqtt.io'}, 'schema': 'json', 'state_topic': 'zigbee2mqtt/0x8418260000caa9df', 'supported_color_modes': ['xy', 'color_temp'], 'unique_id': '0x8418260000caa9df_light_zigbee2mqtt', 'platform': 'mqtt'}'

Deleting and re-adding has not brought any improvement.

What version of Z2M are you on now? Also, what version of HA are you on? That color_mode issue has been fixed already.

Z2M 1.37.1-1, HA OS 10.5, HA Core 2023.9.3

Any update on this?
I have the exact same issue after updating Z2M from 1.34.0 to 1.40.0 and HASS Core from 2023.12.0 to 2024.3.3 - both at once.
Is this a problem with Z2M or with HASS? Any workaround, e.g. manually create the missing entities?

For anyone encountering the same issue:
I was able to resolve it by upgrading Home Assistant to the latest version - 2024.9.1 as of the time of writing this post. The dependency on Python 3.12 had previously prevented me from upgrading sooner.
I hope this helps.