Skip to content

Commit

Permalink
Add missing supported features to Z-Wave.Me siren (#87141)
Browse files Browse the repository at this point in the history
  • Loading branch information
lawfulchaos committed Feb 2, 2023
1 parent 58596d2 commit 41b9994
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion homeassistant/components/zwave_me/siren.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
"""Representation of a sirenBinary."""
from typing import Any

from homeassistant.components.siren import SirenEntity
from homeassistant.components.siren import SirenEntity, SirenEntityFeature
from homeassistant.config_entries import ConfigEntry
from homeassistant.core import HomeAssistant, callback
from homeassistant.helpers.dispatcher import async_dispatcher_connect
Expand Down Expand Up @@ -41,6 +41,13 @@ def add_new_device(new_device):
class ZWaveMeSiren(ZWaveMeEntity, SirenEntity):
"""Representation of a ZWaveMe siren."""

def __init__(self, controller, device):
"""Initialize the device."""
super().__init__(controller, device)
self._attr_supported_features = (
SirenEntityFeature.TURN_ON | SirenEntityFeature.TURN_OFF
)

@property
def is_on(self) -> bool:
"""Return the state of the siren."""
Expand Down

0 comments on commit 41b9994

Please sign in to comment.