diff --git a/homeassistant/components/zeversolar/icons.json b/homeassistant/components/zeversolar/icons.json new file mode 100644 index 00000000000..8e30a4df86b --- /dev/null +++ b/homeassistant/components/zeversolar/icons.json @@ -0,0 +1,12 @@ +{ + "entity": { + "sensor": { + "pac": { + "default": "mdi:solar-power-variant" + }, + "energy_today": { + "default": "mdi:home-battery" + } + } + } +} diff --git a/homeassistant/components/zeversolar/sensor.py b/homeassistant/components/zeversolar/sensor.py index 9e2333a1e24..ca09e5773b0 100644 --- a/homeassistant/components/zeversolar/sensor.py +++ b/homeassistant/components/zeversolar/sensor.py @@ -39,7 +39,7 @@ class ZeversolarEntityDescription( SENSOR_TYPES = ( ZeversolarEntityDescription( key="pac", - icon="mdi:solar-power-variant", + translation_key="pac", native_unit_of_measurement=UnitOfPower.WATT, state_class=SensorStateClass.MEASUREMENT, entity_category=EntityCategory.DIAGNOSTIC, @@ -49,7 +49,6 @@ SENSOR_TYPES = ( ZeversolarEntityDescription( key="energy_today", translation_key="energy_today", - icon="mdi:home-battery", native_unit_of_measurement=UnitOfEnergy.KILO_WATT_HOUR, state_class=SensorStateClass.TOTAL_INCREASING, device_class=SensorDeviceClass.ENERGY,