Move the buttonlights to diagnostic entities (#65423)

This commit is contained in:
Maikel Punie 2022-02-09 09:50:15 +01:00 committed by GitHub
parent bfc3c29c6a
commit d9e9820e21
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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: