Add test button for SmokeSensor in Overkiz (#133476)

This commit is contained in:
Mick Vleeshouwer
2024-12-18 11:48:10 +01:00
committed by GitHub
parent fc4100833e
commit 3bb6256572

View File

@@ -4,7 +4,7 @@ from __future__ import annotations
from dataclasses import dataclass from dataclasses import dataclass
from pyoverkiz.enums import OverkizCommand from pyoverkiz.enums import OverkizCommand, OverkizCommandParam
from pyoverkiz.types import StateType as OverkizStateType from pyoverkiz.types import StateType as OverkizStateType
from homeassistant.components.button import ( from homeassistant.components.button import (
@@ -83,6 +83,14 @@ BUTTON_DESCRIPTIONS: list[OverkizButtonDescription] = [
name="Toggle", name="Toggle",
icon="mdi:sync", icon="mdi:sync",
), ),
# SmokeSensor
OverkizButtonDescription(
key=OverkizCommand.CHECK_EVENT_TRIGGER,
press_args=OverkizCommandParam.SHORT,
name="Test",
icon="mdi:smoke-detector",
entity_category=EntityCategory.DIAGNOSTIC,
),
] ]
SUPPORTED_COMMANDS = { SUPPORTED_COMMANDS = {