Remove icon attribute if device class is set (#76161)

This commit is contained in:
Diogo Gomes
2022-08-04 21:50:02 +02:00
committed by Franck Nijhof
parent 5c9d557b10
commit 6340da72a5
@@ -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: