Fix 4 misconfigured sensor entity descriptions in Tuya (#82933)

This commit is contained in:
Franck Nijhof 2022-11-29 15:54:48 +01:00 committed by GitHub
parent a3b346b560
commit f9364c4e01
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -90,7 +90,7 @@ SENSORS: dict[str, tuple[TuyaSensorEntityDescription, ...]] = {
key=DPCode.GAS_SENSOR_VALUE,
name="Gas",
icon="mdi:gas-cylinder",
device_class=SensorStateClass.MEASUREMENT,
state_class=SensorStateClass.MEASUREMENT,
),
TuyaSensorEntityDescription(
key=DPCode.CH4_SENSOR_VALUE,
@ -157,7 +157,7 @@ SENSORS: dict[str, tuple[TuyaSensorEntityDescription, ...]] = {
name="Smoke amount",
icon="mdi:smoke-detector",
entity_category=EntityCategory.DIAGNOSTIC,
device_class=SensorStateClass.MEASUREMENT,
state_class=SensorStateClass.MEASUREMENT,
),
*BATTERY_SENSORS,
),
@ -514,7 +514,7 @@ SENSORS: dict[str, tuple[TuyaSensorEntityDescription, ...]] = {
TuyaSensorEntityDescription(
key=DPCode.GAS_SENSOR_VALUE,
icon="mdi:gas-cylinder",
device_class=SensorStateClass.MEASUREMENT,
state_class=SensorStateClass.MEASUREMENT,
),
*BATTERY_SENSORS,
),
@ -648,7 +648,7 @@ SENSORS: dict[str, tuple[TuyaSensorEntityDescription, ...]] = {
name="Smoke amount",
icon="mdi:smoke-detector",
entity_category=EntityCategory.DIAGNOSTIC,
device_class=SensorStateClass.MEASUREMENT,
state_class=SensorStateClass.MEASUREMENT,
),
*BATTERY_SENSORS,
),