mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 21:27:38 +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.config_entries import ConfigEntry
|
||||||
from homeassistant.core import HomeAssistant
|
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 homeassistant.helpers.entity_platform import AddEntitiesCallback
|
||||||
|
|
||||||
from . import VelbusEntity
|
from . import VelbusEntity
|
||||||
@ -96,6 +96,7 @@ class VelbusButtonLight(VelbusEntity, LightEntity):
|
|||||||
|
|
||||||
_channel: VelbusButton
|
_channel: VelbusButton
|
||||||
_attr_entity_registry_enabled_default = False
|
_attr_entity_registry_enabled_default = False
|
||||||
|
_attr_entity_category = EntityCategory.DIAGNOSTIC
|
||||||
_attr_supported_features = SUPPORT_FLASH
|
_attr_supported_features = SUPPORT_FLASH
|
||||||
|
|
||||||
def __init__(self, channel: VelbusChannel) -> None:
|
def __init__(self, channel: VelbusChannel) -> None:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user