Add test button for SmokeSensor in Overkiz (#133476)

pull/133482/head
Mick Vleeshouwer 2024-12-18 11:48:10 +01:00 committed by GitHub
parent fc4100833e
commit 3bb6256572
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 9 additions and 1 deletions

View File

@ -4,7 +4,7 @@ from __future__ import annotations
from dataclasses import dataclass
from pyoverkiz.enums import OverkizCommand
from pyoverkiz.enums import OverkizCommand, OverkizCommandParam
from pyoverkiz.types import StateType as OverkizStateType
from homeassistant.components.button import (
@ -83,6 +83,14 @@ BUTTON_DESCRIPTIONS: list[OverkizButtonDescription] = [
name="Toggle",
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 = {