mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 21:27:38 +00:00
Fix 4 misconfigured sensor entity descriptions in Tuya (#82933)
This commit is contained in:
parent
a3b346b560
commit
f9364c4e01
@ -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,
|
||||
),
|
||||
|
Loading…
x
Reference in New Issue
Block a user