Fix smoke alarm detection in tuya (#96475)

This commit is contained in:
Simon Smith 2023-07-18 20:18:58 +01:00 committed by GitHub
parent 36b4b5b887
commit 46675560d2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -318,7 +318,7 @@ BINARY_SENSORS: dict[str, tuple[TuyaBinarySensorEntityDescription, ...]] = {
TuyaBinarySensorEntityDescription(
key=DPCode.SMOKE_SENSOR_STATE,
device_class=BinarySensorDeviceClass.SMOKE,
on_value="1",
on_value={"1", "alarm"},
),
TAMPER_BINARY_SENSOR,
),