mirror of
https://github.com/home-assistant/core.git
synced 2025-07-22 20:57:21 +00:00
Move the buttonlights to diagnostic entities (#65423)
This commit is contained in:
parent
bfc3c29c6a
commit
d9e9820e21
@ -22,7 +22,7 @@ from homeassistant.components.light import (
|
||||
)
|
||||
from homeassistant.config_entries import ConfigEntry
|
||||
from homeassistant.core import HomeAssistant
|
||||
from homeassistant.helpers.entity import Entity
|
||||
from homeassistant.helpers.entity import Entity, EntityCategory
|
||||
from homeassistant.helpers.entity_platform import AddEntitiesCallback
|
||||
|
||||
from . import VelbusEntity
|
||||
@ -96,6 +96,7 @@ class VelbusButtonLight(VelbusEntity, LightEntity):
|
||||
|
||||
_channel: VelbusButton
|
||||
_attr_entity_registry_enabled_default = False
|
||||
_attr_entity_category = EntityCategory.DIAGNOSTIC
|
||||
_attr_supported_features = SUPPORT_FLASH
|
||||
|
||||
def __init__(self, channel: VelbusChannel) -> None:
|
||||
|
Loading…
x
Reference in New Issue
Block a user