Remove icon attribute if device class is set (#76161)
This commit is contained in:
parent
91486f2d61
commit
8ca5b5d4a4
1 changed files with 1 additions and 0 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Reference in a new issue