From 6a1d7c7ad920a26aed73123bd4a52cb09f72d577 Mon Sep 17 00:00:00 2001 From: Marc Mueller <30130371+cdce8p@users.noreply.github.com> Date: Sun, 3 Oct 2021 02:59:38 +0200 Subject: [PATCH] Remove icon if device_class is defined - homekit_controller (#56946) --- .../components/homekit_controller/sensor.py | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/homeassistant/components/homekit_controller/sensor.py b/homeassistant/components/homekit_controller/sensor.py index cac61d59ac4..aaddadd2c53 100644 --- a/homeassistant/components/homekit_controller/sensor.py +++ b/homeassistant/components/homekit_controller/sensor.py @@ -29,9 +29,6 @@ from homeassistant.core import callback from . import KNOWN_DEVICES, CharacteristicEntity, HomeKitEntity -HUMIDITY_ICON = "mdi:water-percent" -TEMP_C_ICON = "mdi:thermometer" -BRIGHTNESS_ICON = "mdi:brightness-6" CO2_ICON = "mdi:molecule-co2" @@ -148,11 +145,6 @@ class HomeKitHumiditySensor(HomeKitEntity, SensorEntity): """Return the name of the device.""" return f"{super().name} Humidity" - @property - def icon(self): - """Return the sensor icon.""" - return HUMIDITY_ICON - @property def native_value(self): """Return the current humidity.""" @@ -174,11 +166,6 @@ class HomeKitTemperatureSensor(HomeKitEntity, SensorEntity): """Return the name of the device.""" return f"{super().name} Temperature" - @property - def icon(self): - """Return the sensor icon.""" - return TEMP_C_ICON - @property def native_value(self): """Return the current temperature in Celsius.""" @@ -200,11 +187,6 @@ class HomeKitLightSensor(HomeKitEntity, SensorEntity): """Return the name of the device.""" return f"{super().name} Light Level" - @property - def icon(self): - """Return the sensor icon.""" - return BRIGHTNESS_ICON - @property def native_value(self): """Return the current light level in lux."""