Add identify device class in Overkiz (#133474)

pull/133995/head
Mick Vleeshouwer 2024-12-18 11:22:32 +01:00 committed by GitHub
parent 05b0c56191
commit 7730f423b3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 6 additions and 1 deletions

View File

@ -7,7 +7,11 @@ from dataclasses import dataclass
from pyoverkiz.enums import OverkizCommand
from pyoverkiz.types import StateType as OverkizStateType
from homeassistant.components.button import ButtonEntity, ButtonEntityDescription
from homeassistant.components.button import (
ButtonDeviceClass,
ButtonEntity,
ButtonEntityDescription,
)
from homeassistant.config_entries import ConfigEntry
from homeassistant.const import EntityCategory
from homeassistant.core import HomeAssistant
@ -52,6 +56,7 @@ BUTTON_DESCRIPTIONS: list[OverkizButtonDescription] = [
name="Identify",
icon="mdi:human-greeting-variant",
entity_category=EntityCategory.DIAGNOSTIC,
device_class=ButtonDeviceClass.IDENTIFY,
),
# RTDIndoorSiren / RTDOutdoorSiren
OverkizButtonDescription(