mirror of
https://github.com/home-assistant/core.git
synced 2025-08-07 06:35:10 +02:00
Add explicit device naming for Tuya sensors (#95944)
This commit is contained in:
committed by
GitHub
parent
966e89a60c
commit
45ae6b3475
@@ -511,6 +511,7 @@ SENSORS: dict[str, tuple[TuyaSensorEntityDescription, ...]] = {
|
|||||||
"rqbj": (
|
"rqbj": (
|
||||||
TuyaSensorEntityDescription(
|
TuyaSensorEntityDescription(
|
||||||
key=DPCode.GAS_SENSOR_VALUE,
|
key=DPCode.GAS_SENSOR_VALUE,
|
||||||
|
name=None,
|
||||||
icon="mdi:gas-cylinder",
|
icon="mdi:gas-cylinder",
|
||||||
state_class=SensorStateClass.MEASUREMENT,
|
state_class=SensorStateClass.MEASUREMENT,
|
||||||
),
|
),
|
||||||
@@ -633,6 +634,7 @@ SENSORS: dict[str, tuple[TuyaSensorEntityDescription, ...]] = {
|
|||||||
"ylcg": (
|
"ylcg": (
|
||||||
TuyaSensorEntityDescription(
|
TuyaSensorEntityDescription(
|
||||||
key=DPCode.PRESSURE_VALUE,
|
key=DPCode.PRESSURE_VALUE,
|
||||||
|
name=None,
|
||||||
device_class=SensorDeviceClass.PRESSURE,
|
device_class=SensorDeviceClass.PRESSURE,
|
||||||
state_class=SensorStateClass.MEASUREMENT,
|
state_class=SensorStateClass.MEASUREMENT,
|
||||||
),
|
),
|
||||||
|
Reference in New Issue
Block a user