Skip to content

[HA Core 2025.3 Warning: HASPLight does not report a color mode #161

@dekimsey

Description

@dekimsey

Version of the custom_component

0.7.6

Configuration

# no configuration

Describe the bug

HomeAssistant is generating the warning:

[homeassistant.components.light] light.office_plate_1_light_12 (<class 'custom_components.openhasp.light.HASPLight'>) does not report a color mode, this will stop working in Home Assistant Core 2025.3, please create a bug report at https://github.com/HASwitchPlate/openHASP-custom-component/issues

I believe this is the related notice on the change: https://developers.home-assistant.io/blog/2024/02/12/light-color-mode-mandatory

Debug log

2025-03-26 19:59:01.355 DEBUG (MainThread) [custom_components.openhasp.light] Idle state for office_plate_1 backlight is off - Dimming to 255; Backlight to on
2025-03-26 19:59:01.450 DEBUG (MainThread) [custom_components.openhasp.light] received backlight office_plate_1 backlight: {'state': True, 'brightness': 255}
2025-03-26 19:59:01.498 DEBUG (MainThread) [custom_components.openhasp.light] received backlight office_plate_1 backlight: {'state': True, 'brightness': 255}
2025-03-26 19:59:01.499 DEBUG (MainThread) [custom_components.openhasp.light] received backlight office_plate_1 backlight: {'state': True, 'brightness': 255}
2025-03-26 19:59:01.542 DEBUG (MainThread) [custom_components.openhasp.light] received light office_plate_1 light 12:  {'state': True}
2025-03-26 19:59:01.542 WARNING (MainThread) [homeassistant.components.light] light.office_plate_1_light_12 (<class 'custom_components.openhasp.light.HASPLight'>) does not report a color mode, this will stop working in Home Assistant Core 2025.3, please create a bug report at https://github.com/HASwitchPlate/openHASP-custom-component/issues
2025-03-26 19:59:01.543 DEBUG (MainThread) [custom_components.openhasp.light] received light office_plate_1 light 12:  {'state': True}
2025-03-26 20:00:02.060 DEBUG (MainThread) [custom_components.openhasp.light] Idle state for office_plate_1 backlight is short - Dimming to 25; Backlight to on

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions