From 6340da72a5b1f166cbecd89f33354fa07ea0af8f Mon Sep 17 00:00:00 2001 From: Diogo Gomes Date: Thu, 4 Aug 2022 18:36:37 +0100 Subject: [PATCH] Remove icon attribute if device class is set (#76161) --- homeassistant/components/integration/sensor.py | 1 + 1 file changed, 1 insertion(+) diff --git a/homeassistant/components/integration/sensor.py b/homeassistant/components/integration/sensor.py index 5d0dde3e4de..b3b8a2a2b9d 100644 --- a/homeassistant/components/integration/sensor.py +++ b/homeassistant/components/integration/sensor.py @@ -223,6 +223,7 @@ class IntegrationSensor(RestoreEntity, SensorEntity): == SensorDeviceClass.POWER ): self._attr_device_class = SensorDeviceClass.ENERGY + self._attr_icon = None update_state = True if update_state: