Updates V2C sensor icons ()

update icons
pull/105545/head
Diogo Gomes 2023-12-12 07:17:09 +00:00 committed by GitHub
parent 8922c93259
commit 54c218c139
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 1 deletions
homeassistant/components/v2c

View File

@ -41,6 +41,7 @@ TRYDAN_SENSORS = (
V2CSensorEntityDescription(
key="charge_power",
translation_key="charge_power",
icon="mdi:ev-station",
native_unit_of_measurement=UnitOfPower.WATT,
state_class=SensorStateClass.MEASUREMENT,
device_class=SensorDeviceClass.POWER,
@ -49,6 +50,7 @@ TRYDAN_SENSORS = (
V2CSensorEntityDescription(
key="charge_energy",
translation_key="charge_energy",
icon="mdi:ev-station",
native_unit_of_measurement=UnitOfEnergy.KILO_WATT_HOUR,
state_class=SensorStateClass.TOTAL_INCREASING,
device_class=SensorDeviceClass.ENERGY,
@ -57,6 +59,7 @@ TRYDAN_SENSORS = (
V2CSensorEntityDescription(
key="charge_time",
translation_key="charge_time",
icon="mdi:timer",
native_unit_of_measurement=UnitOfTime.SECONDS,
state_class=SensorStateClass.TOTAL_INCREASING,
device_class=SensorDeviceClass.DURATION,
@ -65,6 +68,7 @@ TRYDAN_SENSORS = (
V2CSensorEntityDescription(
key="house_power",
translation_key="house_power",
icon="mdi:home-lightning-bolt",
native_unit_of_measurement=UnitOfPower.WATT,
state_class=SensorStateClass.MEASUREMENT,
device_class=SensorDeviceClass.POWER,
@ -73,6 +77,7 @@ TRYDAN_SENSORS = (
V2CSensorEntityDescription(
key="fv_power",
translation_key="fv_power",
icon="mdi:solar-power-variant",
native_unit_of_measurement=UnitOfPower.WATT,
state_class=SensorStateClass.MEASUREMENT,
device_class=SensorDeviceClass.POWER,
@ -99,7 +104,6 @@ class V2CSensorBaseEntity(V2CBaseEntity, SensorEntity):
"""Defines a base v2c sensor entity."""
entity_description: V2CSensorEntityDescription
_attr_icon = "mdi:ev-station"
def __init__(
self,