Skip to content

Commit

Permalink
Add test button for SmokeSensor in Overkiz (#133476)
Browse files Browse the repository at this point in the history
  • Loading branch information
iMicknl authored Dec 18, 2024
1 parent fc41008 commit 3bb6256
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion homeassistant/components/overkiz/button.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

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 (
Expand Down Expand Up @@ -83,6 +83,14 @@ class OverkizButtonDescription(ButtonEntityDescription):
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 = {
Expand Down

0 comments on commit 3bb6256

Please sign in to comment.