Skip to content

color_mode property missing — HomeAssistantError on every poll #278

@DaveBulldozer

Description

@DaveBulldozer

On v2026.4.2 of Home Assistant, the light platform requires every light entity to implement both supported_color_modes and color_mode. The integration currently only implements supported_color_modes, which causes HA to throw a HomeAssistantError on every polling interval (~every 10 seconds), flooding the logs.

Error
homeassistant.exceptions.HomeAssistantError: light.bulldozers_light_bars (<class 'custom_components.govee.light.GoveeLightEntity'>) does not report a color mode

Full traceback originates in update_coordinator.py → async_update_listeners → async_write_ha_state → __async_calculate_state → state_attributes in homeassistant/components/light/init.py.
Root Cause
GoveeLightEntity in light.py implements supported_color_modes (line ~160) but is missing the color_mode property that HA now requires to return the currently active mode.

Fix
Add the following property to GoveeLightEntity directly after supported_color_modes:
python

@property
def color_mode(self) -> ColorMode:
    """Get current color mode."""
    supported = self.supported_color_modes
    if ColorMode.HS in supported:
        return ColorMode.HS
    if ColorMode.COLOR_TEMP in supported:
        return ColorMode.COLOR_TEMP
    if ColorMode.BRIGHTNESS in supported:
        return ColorMode.BRIGHTNESS
    return ColorMode.ONOFF

This derives the current mode from the supported modes, which is consistent with how the rest of the entity is structured. A PR with this fix is attached.
Environment

Home Assistant (Docker, latest)
Ubuntu 24.04
hacs-govee (latest via HACS)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions