Add icon translations to Justnimbus (#111849)
parent
36a5c71dc7
commit
0d85e316a2
|
@ -0,0 +1,27 @@
|
|||
{
|
||||
"entity": {
|
||||
"sensor": {
|
||||
"pump_pressure": {
|
||||
"default": "mdi:water-pump"
|
||||
},
|
||||
"reservoir_temperature": {
|
||||
"default": "mdi:coolant-temperature"
|
||||
},
|
||||
"reservoir_content": {
|
||||
"default": "mdi:car-coolant-level"
|
||||
},
|
||||
"water_saved": {
|
||||
"default": "mdi:water-opacity"
|
||||
},
|
||||
"water_used": {
|
||||
"default": "mdi:chart-donut"
|
||||
},
|
||||
"reservoir_capacity": {
|
||||
"default": "mdi:waves"
|
||||
},
|
||||
"pump_type": {
|
||||
"default": "mdi:pump"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -46,7 +46,6 @@ SENSOR_TYPES = (
|
|||
JustNimbusEntityDescription(
|
||||
key="pump_pressure",
|
||||
translation_key="pump_pressure",
|
||||
icon="mdi:water-pump",
|
||||
native_unit_of_measurement=UnitOfPressure.BAR,
|
||||
device_class=SensorDeviceClass.PRESSURE,
|
||||
state_class=SensorStateClass.MEASUREMENT,
|
||||
|
@ -56,7 +55,6 @@ SENSOR_TYPES = (
|
|||
JustNimbusEntityDescription(
|
||||
key="reservoir_temp",
|
||||
translation_key="reservoir_temperature",
|
||||
icon="mdi:coolant-temperature",
|
||||
native_unit_of_measurement=UnitOfTemperature.CELSIUS,
|
||||
device_class=SensorDeviceClass.TEMPERATURE,
|
||||
state_class=SensorStateClass.MEASUREMENT,
|
||||
|
@ -66,7 +64,6 @@ SENSOR_TYPES = (
|
|||
JustNimbusEntityDescription(
|
||||
key="reservoir_content",
|
||||
translation_key="reservoir_content",
|
||||
icon="mdi:car-coolant-level",
|
||||
native_unit_of_measurement=UnitOfVolume.LITERS,
|
||||
device_class=SensorDeviceClass.VOLUME,
|
||||
state_class=SensorStateClass.TOTAL,
|
||||
|
@ -76,7 +73,6 @@ SENSOR_TYPES = (
|
|||
JustNimbusEntityDescription(
|
||||
key="water_saved",
|
||||
translation_key="water_saved",
|
||||
icon="mdi:water-opacity",
|
||||
native_unit_of_measurement=UnitOfVolume.LITERS,
|
||||
device_class=SensorDeviceClass.VOLUME,
|
||||
state_class=SensorStateClass.TOTAL_INCREASING,
|
||||
|
@ -86,7 +82,6 @@ SENSOR_TYPES = (
|
|||
JustNimbusEntityDescription(
|
||||
key="water_used",
|
||||
translation_key="water_used",
|
||||
icon="mdi:chart-donut",
|
||||
native_unit_of_measurement=UnitOfVolume.LITERS,
|
||||
device_class=SensorDeviceClass.VOLUME,
|
||||
state_class=SensorStateClass.TOTAL_INCREASING,
|
||||
|
@ -96,7 +91,6 @@ SENSOR_TYPES = (
|
|||
JustNimbusEntityDescription(
|
||||
key="reservoir_capacity",
|
||||
translation_key="reservoir_capacity",
|
||||
icon="mdi:waves",
|
||||
native_unit_of_measurement=UnitOfVolume.LITERS,
|
||||
device_class=SensorDeviceClass.VOLUME,
|
||||
state_class=SensorStateClass.TOTAL,
|
||||
|
@ -106,7 +100,6 @@ SENSOR_TYPES = (
|
|||
JustNimbusEntityDescription(
|
||||
key="pump_type",
|
||||
translation_key="pump_type",
|
||||
icon="mdi:pump",
|
||||
entity_category=EntityCategory.DIAGNOSTIC,
|
||||
value_fn=lambda coordinator: coordinator.data.pump_type,
|
||||
),
|
||||
|
|
Loading…
Reference in New Issue