Skip to content

Overriding Color capabilities still presents incorrect UI representation #487

@candeodevelopment

Description

@candeodevelopment

@TheJulianJES apologies if this is the wrong repo for where this issue originates, we weren't sure where best to report it or who to tag with it.

We've come up against an issue while preparing a Quirk for one of our devices.

We're using _CONSTANT_ATTRIBUTES to override color capabilities to ensure the UI representation is correct.

Everything works as expected with other ColorCapabilities but when using XY_attributes:

_CONSTANT_ATTRIBUTES = {Color.AttributeDefs.color_capabilities.id: Color.ColorCapabilities.XY_attributes}

For this one the UI still shows Color Temperature controls and options:

Image Image

Our understanding of the code here is that '_color_cluster_handler.color_temp_supported' should be returning false as we're only exlicitly adding XY_attributes and therefore the UI should only be displaying Color RGB controls.

if self._color_cluster_handler.color_temp_supported:

def color_temp_supported(self) -> bool:

Is this a bug or have we missunderstood what should be happening?

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