Remove icon where device_class is defined. (#54323)
This commit is contained in:
parent
608f406a2c
commit
9b7b787fe4
2 changed files with 7 additions and 9 deletions
|
@ -38,7 +38,6 @@ SENSOR_TYPES = (
|
|||
key="battery_level",
|
||||
name="Battery Level",
|
||||
unit_of_measurement=PERCENTAGE,
|
||||
icon="mdi:battery-50",
|
||||
device_class=DEVICE_CLASS_BATTERY,
|
||||
),
|
||||
SensorEntityDescription(
|
||||
|
@ -48,14 +47,12 @@ SENSOR_TYPES = (
|
|||
key="temperature",
|
||||
name="Temperature",
|
||||
unit_of_measurement=TEMP_CELSIUS,
|
||||
icon="mdi:thermometer",
|
||||
device_class=DEVICE_CLASS_TEMPERATURE,
|
||||
),
|
||||
SensorEntityDescription(
|
||||
key="humidity",
|
||||
name="Humidity",
|
||||
unit_of_measurement=PERCENTAGE,
|
||||
icon="mdi:water-percent",
|
||||
device_class=DEVICE_CLASS_HUMIDITY,
|
||||
),
|
||||
SensorEntityDescription(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue