Skip to content

Commit

Permalink
Add explicit device naming for Tuya sensors (home-assistant#95944)
Browse files Browse the repository at this point in the history
  • Loading branch information
joostlek committed Jul 6, 2023
1 parent a84ce33 commit 24e79a0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions homeassistant/components/tuya/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -511,6 +511,7 @@ class TuyaSensorEntityDescription(SensorEntityDescription):
"rqbj": (
TuyaSensorEntityDescription(
key=DPCode.GAS_SENSOR_VALUE,
name=None,
icon="mdi:gas-cylinder",
state_class=SensorStateClass.MEASUREMENT,
),
Expand Down Expand Up @@ -633,6 +634,7 @@ class TuyaSensorEntityDescription(SensorEntityDescription):
"ylcg": (
TuyaSensorEntityDescription(
key=DPCode.PRESSURE_VALUE,
name=None,
device_class=SensorDeviceClass.PRESSURE,
state_class=SensorStateClass.MEASUREMENT,
),
Expand Down

0 comments on commit 24e79a0

Please sign in to comment.