mirror of
https://github.com/home-assistant/core.git
synced 2025-08-05 21:55:10 +02:00
Fix 4 misconfigured sensor entity descriptions in Tuya (#82933)
This commit is contained in:
@@ -90,7 +90,7 @@ SENSORS: dict[str, tuple[TuyaSensorEntityDescription, ...]] = {
|
|||||||
key=DPCode.GAS_SENSOR_VALUE,
|
key=DPCode.GAS_SENSOR_VALUE,
|
||||||
name="Gas",
|
name="Gas",
|
||||||
icon="mdi:gas-cylinder",
|
icon="mdi:gas-cylinder",
|
||||||
device_class=SensorStateClass.MEASUREMENT,
|
state_class=SensorStateClass.MEASUREMENT,
|
||||||
),
|
),
|
||||||
TuyaSensorEntityDescription(
|
TuyaSensorEntityDescription(
|
||||||
key=DPCode.CH4_SENSOR_VALUE,
|
key=DPCode.CH4_SENSOR_VALUE,
|
||||||
@@ -157,7 +157,7 @@ SENSORS: dict[str, tuple[TuyaSensorEntityDescription, ...]] = {
|
|||||||
name="Smoke amount",
|
name="Smoke amount",
|
||||||
icon="mdi:smoke-detector",
|
icon="mdi:smoke-detector",
|
||||||
entity_category=EntityCategory.DIAGNOSTIC,
|
entity_category=EntityCategory.DIAGNOSTIC,
|
||||||
device_class=SensorStateClass.MEASUREMENT,
|
state_class=SensorStateClass.MEASUREMENT,
|
||||||
),
|
),
|
||||||
*BATTERY_SENSORS,
|
*BATTERY_SENSORS,
|
||||||
),
|
),
|
||||||
@@ -514,7 +514,7 @@ SENSORS: dict[str, tuple[TuyaSensorEntityDescription, ...]] = {
|
|||||||
TuyaSensorEntityDescription(
|
TuyaSensorEntityDescription(
|
||||||
key=DPCode.GAS_SENSOR_VALUE,
|
key=DPCode.GAS_SENSOR_VALUE,
|
||||||
icon="mdi:gas-cylinder",
|
icon="mdi:gas-cylinder",
|
||||||
device_class=SensorStateClass.MEASUREMENT,
|
state_class=SensorStateClass.MEASUREMENT,
|
||||||
),
|
),
|
||||||
*BATTERY_SENSORS,
|
*BATTERY_SENSORS,
|
||||||
),
|
),
|
||||||
@@ -648,7 +648,7 @@ SENSORS: dict[str, tuple[TuyaSensorEntityDescription, ...]] = {
|
|||||||
name="Smoke amount",
|
name="Smoke amount",
|
||||||
icon="mdi:smoke-detector",
|
icon="mdi:smoke-detector",
|
||||||
entity_category=EntityCategory.DIAGNOSTIC,
|
entity_category=EntityCategory.DIAGNOSTIC,
|
||||||
device_class=SensorStateClass.MEASUREMENT,
|
state_class=SensorStateClass.MEASUREMENT,
|
||||||
),
|
),
|
||||||
*BATTERY_SENSORS,
|
*BATTERY_SENSORS,
|
||||||
),
|
),
|
||||||
|
Reference in New Issue
Block a user