Fix smoke alarm detection in tuya (#96475)

pull/96872/head
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
1 changed files with 1 additions and 1 deletions

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,
),