Skip to content

Set entity_category for generated switches to 'config' #241

@stefanroelofs

Description

@stefanroelofs

As per documentation the integration creates 4 switches:

  • switch.adaptive_lighting_living_room
  • switch.adaptive_lighting_sleep_mode_living_room
  • switch.adaptive_lighting_adapt_brightness_living_room
  • switch.adaptive_lighting_adapt_color_living_room

I think it is nice if the last 3 switches (sleep_mode, adapt_brightness and adapt_color) are of entity_category: config
These switches are used to configure the integration, and do not need to show up on my main dashboard.

More info here: https://developers.home-assistant.io/docs/core/entity/#generic-properties

Solution might be something like this. Add the following line to switch.py line 1003:
self.entity_category = "config"

Thanks!

Metadata

Metadata

Assignees

Projects

Status

Inbox

Relationships

None yet

Development

No branches or pull requests

Issue actions