Add icon translations to Blue current (#111347)

This commit is contained in:
Joost Lekkerkerker 2024-02-25 10:39:15 +01:00 committed by GitHub
parent 70af28cc26
commit 496339773b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 24 additions and 6 deletions

View File

@ -0,0 +1,24 @@
{
"entity": {
"sensor": {
"vehicle_status": {
"default": "mdi:car"
},
"activity": {
"default": "mdi:ev-station"
},
"max_usage": {
"default": "mdi:gauge-full"
},
"smartcharging_max_usage": {
"default": "mdi:gauge-full"
},
"max_offline": {
"default": "mdi:gauge-full"
},
"current_left": {
"default": "mdi:gauge"
}
}
}
}

View File

@ -124,14 +124,12 @@ SENSORS = (
),
SensorEntityDescription(
key="vehicle_status",
icon="mdi:car",
device_class=SensorDeviceClass.ENUM,
options=["standby", "vehicle_detected", "ready", "no_power", "vehicle_error"],
translation_key="vehicle_status",
),
SensorEntityDescription(
key="activity",
icon="mdi:ev-station",
device_class=SensorDeviceClass.ENUM,
options=["available", "charging", "unavailable", "error", "offline"],
translation_key="activity",
@ -139,7 +137,6 @@ SENSORS = (
SensorEntityDescription(
key="max_usage",
translation_key="max_usage",
icon="mdi:gauge-full",
native_unit_of_measurement=UnitOfElectricCurrent.AMPERE,
device_class=SensorDeviceClass.CURRENT,
state_class=SensorStateClass.MEASUREMENT,
@ -147,7 +144,6 @@ SENSORS = (
SensorEntityDescription(
key="smartcharging_max_usage",
translation_key="smartcharging_max_usage",
icon="mdi:gauge-full",
native_unit_of_measurement=UnitOfElectricCurrent.AMPERE,
entity_registry_enabled_default=False,
device_class=SensorDeviceClass.CURRENT,
@ -156,7 +152,6 @@ SENSORS = (
SensorEntityDescription(
key="max_offline",
translation_key="max_offline",
icon="mdi:gauge-full",
native_unit_of_measurement=UnitOfElectricCurrent.AMPERE,
entity_registry_enabled_default=False,
device_class=SensorDeviceClass.CURRENT,
@ -165,7 +160,6 @@ SENSORS = (
SensorEntityDescription(
key="current_left",
translation_key="current_left",
icon="mdi:gauge",
native_unit_of_measurement=UnitOfElectricCurrent.AMPERE,
entity_registry_enabled_default=False,
device_class=SensorDeviceClass.CURRENT,