parent
59f238b9a7
commit
94e192db12
3 changed files with 4 additions and 2 deletions
|
@ -206,7 +206,7 @@ class ZWaveBaseEntity(Entity):
|
||||||
):
|
):
|
||||||
name += f" ({primary_value.endpoint})"
|
name += f" ({primary_value.endpoint})"
|
||||||
|
|
||||||
return name
|
return name.strip()
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def available(self) -> bool:
|
def available(self) -> bool:
|
||||||
|
|
|
@ -72,6 +72,8 @@ class ZwaveSirenEntity(ZWaveBaseEntity, SirenEntity):
|
||||||
if self._attr_available_tones:
|
if self._attr_available_tones:
|
||||||
self._attr_supported_features |= SirenEntityFeature.TONES
|
self._attr_supported_features |= SirenEntityFeature.TONES
|
||||||
|
|
||||||
|
self._attr_name = self.generate_name(include_value_name=True)
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def is_on(self) -> bool | None:
|
def is_on(self) -> bool | None:
|
||||||
"""Return whether device is on."""
|
"""Return whether device is on."""
|
||||||
|
|
|
@ -9,7 +9,7 @@ from homeassistant.components.siren import (
|
||||||
from homeassistant.const import STATE_OFF, STATE_ON, STATE_UNKNOWN
|
from homeassistant.const import STATE_OFF, STATE_ON, STATE_UNKNOWN
|
||||||
from homeassistant.core import HomeAssistant
|
from homeassistant.core import HomeAssistant
|
||||||
|
|
||||||
SIREN_ENTITY = "siren.indoor_siren_6_2"
|
SIREN_ENTITY = "siren.indoor_siren_6_play_tone_2"
|
||||||
|
|
||||||
TONE_ID_VALUE_ID = {
|
TONE_ID_VALUE_ID = {
|
||||||
"endpoint": 2,
|
"endpoint": 2,
|
||||||
|
|
Loading…
Add table
Reference in a new issue