Fix smoke alarm detection in tuya (#96475)
This commit is contained in:
parent
36b4b5b887
commit
46675560d2
1 changed files with 1 additions and 1 deletions
|
@ -318,7 +318,7 @@ BINARY_SENSORS: dict[str, tuple[TuyaBinarySensorEntityDescription, ...]] = {
|
||||||
TuyaBinarySensorEntityDescription(
|
TuyaBinarySensorEntityDescription(
|
||||||
key=DPCode.SMOKE_SENSOR_STATE,
|
key=DPCode.SMOKE_SENSOR_STATE,
|
||||||
device_class=BinarySensorDeviceClass.SMOKE,
|
device_class=BinarySensorDeviceClass.SMOKE,
|
||||||
on_value="1",
|
on_value={"1", "alarm"},
|
||||||
),
|
),
|
||||||
TAMPER_BINARY_SENSOR,
|
TAMPER_BINARY_SENSOR,
|
||||||
),
|
),
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue