From 45ae6b34751de03c9e6ad4ec86a7370a1678e07b Mon Sep 17 00:00:00 2001 From: Joost Lekkerkerker Date: Thu, 6 Jul 2023 16:19:42 +0200 Subject: [PATCH] Add explicit device naming for Tuya sensors (#95944) --- homeassistant/components/tuya/sensor.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/homeassistant/components/tuya/sensor.py b/homeassistant/components/tuya/sensor.py index a2cd2d5fc41..afa40f27afd 100644 --- a/homeassistant/components/tuya/sensor.py +++ b/homeassistant/components/tuya/sensor.py @@ -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, ),