mirror of
https://github.com/home-assistant/core.git
synced 2025-07-09 22:37:11 +00:00
Add test button for SmokeSensor in Overkiz (#133476)
This commit is contained in:
parent
fc4100833e
commit
3bb6256572
@ -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 = {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user