Remove icon where device_class is defined. (#54323)

This commit is contained in:
jan iversen 2021-08-09 13:13:11 +02:00 committed by GitHub
parent 608f406a2c
commit 9b7b787fe4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 9 deletions

View file

@ -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(