mirror of
https://github.com/home-assistant/core.git
synced 2025-07-13 16:27:08 +00:00
Use EntityCategory enum in Overkiz (#64565)
This commit is contained in:
parent
7ea8d72133
commit
8fda3ae4cb
@ -3,8 +3,8 @@ from __future__ import annotations
|
||||
|
||||
from homeassistant.components.button import ButtonEntity, ButtonEntityDescription
|
||||
from homeassistant.config_entries import ConfigEntry
|
||||
from homeassistant.const import ENTITY_CATEGORY_DIAGNOSTIC
|
||||
from homeassistant.core import HomeAssistant
|
||||
from homeassistant.helpers.entity import EntityCategory
|
||||
from homeassistant.helpers.entity_platform import AddEntitiesCallback
|
||||
|
||||
from . import HomeAssistantOverkizData
|
||||
@ -23,21 +23,21 @@ BUTTON_DESCRIPTIONS: list[ButtonEntityDescription] = [
|
||||
key="identify", # startIdentify and identify are reversed... Swap this when fixed in API.
|
||||
name="Start Identify",
|
||||
icon="mdi:human-greeting-variant",
|
||||
entity_category=ENTITY_CATEGORY_DIAGNOSTIC,
|
||||
entity_category=EntityCategory.DIAGNOSTIC,
|
||||
entity_registry_enabled_default=False,
|
||||
),
|
||||
ButtonEntityDescription(
|
||||
key="stopIdentify",
|
||||
name="Stop Identify",
|
||||
icon="mdi:human-greeting-variant",
|
||||
entity_category=ENTITY_CATEGORY_DIAGNOSTIC,
|
||||
entity_category=EntityCategory.DIAGNOSTIC,
|
||||
entity_registry_enabled_default=False,
|
||||
),
|
||||
ButtonEntityDescription(
|
||||
key="startIdentify", # startIdentify and identify are reversed... Swap this when fixed in API.
|
||||
name="Identify",
|
||||
icon="mdi:human-greeting-variant",
|
||||
entity_category=ENTITY_CATEGORY_DIAGNOSTIC,
|
||||
entity_category=EntityCategory.DIAGNOSTIC,
|
||||
),
|
||||
# RTDIndoorSiren / RTDOutdoorSiren
|
||||
ButtonEntityDescription(key="dingDong", name="Ding Dong", icon="mdi:bell-ring"),
|
||||
|
Loading…
x
Reference in New Issue
Block a user