mirror of
https://github.com/home-assistant/core.git
synced 2025-08-09 23:55:07 +02:00
Remove icon attribute if device class is set (#76161)
This commit is contained in:
@@ -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:
|
||||
|
Reference in New Issue
Block a user