Skip to content

Implement color_mode property in light.py#279

Open
DaveBulldozer wants to merge 1 commit into
LaggAt:masterfrom
DaveBulldozer:master
Open

Implement color_mode property in light.py#279
DaveBulldozer wants to merge 1 commit into
LaggAt:masterfrom
DaveBulldozer:master

Conversation

@DaveBulldozer

Copy link
Copy Markdown

Add color_mode property to retrieve current color mode.

This was causing an error, see Issue reported in Master Branch

Add color_mode property to retrieve current color mode.

This was causing an error, see Issue reported in Master Branch

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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant