mirror of
https://github.com/home-assistant/core.git
synced 2025-07-27 07:07:28 +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,
|
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,
|
||||||
),
|
),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user