Add explicit device naming for Tuya sensors (#95944)

This commit is contained in:
Joost Lekkerkerker 2023-07-06 16:19:42 +02:00 committed by GitHub
parent 966e89a60c
commit 45ae6b3475
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -511,6 +511,7 @@ SENSORS: dict[str, tuple[TuyaSensorEntityDescription, ...]] = {
"rqbj": (
TuyaSensorEntityDescription(
key=DPCode.GAS_SENSOR_VALUE,
name=None,
icon="mdi:gas-cylinder",
state_class=SensorStateClass.MEASUREMENT,
),
@ -633,6 +634,7 @@ SENSORS: dict[str, tuple[TuyaSensorEntityDescription, ...]] = {
"ylcg": (
TuyaSensorEntityDescription(
key=DPCode.PRESSURE_VALUE,
name=None,
device_class=SensorDeviceClass.PRESSURE,
state_class=SensorStateClass.MEASUREMENT,
),