Add entity translations to justnimbus (#98235)
This commit is contained in:
parent
11b1a42a1c
commit
398a789ba2
3 changed files with 54 additions and 12 deletions
|
@ -46,7 +46,7 @@ class JustNimbusEntityDescription(
|
|||
SENSOR_TYPES = (
|
||||
JustNimbusEntityDescription(
|
||||
key="pump_flow",
|
||||
name="Pump flow",
|
||||
translation_key="pump_flow",
|
||||
icon="mdi:pump",
|
||||
native_unit_of_measurement=VOLUME_FLOW_RATE_LITERS_PER_MINUTE,
|
||||
state_class=SensorStateClass.MEASUREMENT,
|
||||
|
@ -55,7 +55,7 @@ SENSOR_TYPES = (
|
|||
),
|
||||
JustNimbusEntityDescription(
|
||||
key="drink_flow",
|
||||
name="Drink flow",
|
||||
translation_key="drink_flow",
|
||||
icon="mdi:water-pump",
|
||||
native_unit_of_measurement=VOLUME_FLOW_RATE_LITERS_PER_MINUTE,
|
||||
state_class=SensorStateClass.MEASUREMENT,
|
||||
|
@ -64,7 +64,7 @@ SENSOR_TYPES = (
|
|||
),
|
||||
JustNimbusEntityDescription(
|
||||
key="pump_pressure",
|
||||
name="Pump pressure",
|
||||
translation_key="pump_pressure",
|
||||
native_unit_of_measurement=UnitOfPressure.BAR,
|
||||
device_class=SensorDeviceClass.PRESSURE,
|
||||
state_class=SensorStateClass.MEASUREMENT,
|
||||
|
@ -73,7 +73,7 @@ SENSOR_TYPES = (
|
|||
),
|
||||
JustNimbusEntityDescription(
|
||||
key="pump_starts",
|
||||
name="Pump starts",
|
||||
translation_key="pump_starts",
|
||||
icon="mdi:restart",
|
||||
state_class=SensorStateClass.MEASUREMENT,
|
||||
entity_category=EntityCategory.DIAGNOSTIC,
|
||||
|
@ -81,7 +81,7 @@ SENSOR_TYPES = (
|
|||
),
|
||||
JustNimbusEntityDescription(
|
||||
key="pump_hours",
|
||||
name="Pump hours",
|
||||
translation_key="pump_hours",
|
||||
icon="mdi:clock",
|
||||
device_class=SensorDeviceClass.DURATION,
|
||||
native_unit_of_measurement=UnitOfTime.HOURS,
|
||||
|
@ -91,7 +91,7 @@ SENSOR_TYPES = (
|
|||
),
|
||||
JustNimbusEntityDescription(
|
||||
key="reservoir_temp",
|
||||
name="Reservoir Temperature",
|
||||
translation_key="reservoir_temperature",
|
||||
native_unit_of_measurement=UnitOfTemperature.CELSIUS,
|
||||
device_class=SensorDeviceClass.TEMPERATURE,
|
||||
state_class=SensorStateClass.MEASUREMENT,
|
||||
|
@ -100,7 +100,7 @@ SENSOR_TYPES = (
|
|||
),
|
||||
JustNimbusEntityDescription(
|
||||
key="reservoir_content",
|
||||
name="Reservoir content",
|
||||
translation_key="reservoir_content",
|
||||
icon="mdi:car-coolant-level",
|
||||
native_unit_of_measurement=UnitOfVolume.LITERS,
|
||||
device_class=SensorDeviceClass.VOLUME,
|
||||
|
@ -110,7 +110,7 @@ SENSOR_TYPES = (
|
|||
),
|
||||
JustNimbusEntityDescription(
|
||||
key="total_saved",
|
||||
name="Total saved",
|
||||
translation_key="total_saved",
|
||||
icon="mdi:water-opacity",
|
||||
native_unit_of_measurement=UnitOfVolume.LITERS,
|
||||
device_class=SensorDeviceClass.VOLUME,
|
||||
|
@ -120,7 +120,7 @@ SENSOR_TYPES = (
|
|||
),
|
||||
JustNimbusEntityDescription(
|
||||
key="total_replenished",
|
||||
name="Total replenished",
|
||||
translation_key="total_replenished",
|
||||
icon="mdi:water",
|
||||
native_unit_of_measurement=UnitOfVolume.LITERS,
|
||||
device_class=SensorDeviceClass.VOLUME,
|
||||
|
@ -130,7 +130,7 @@ SENSOR_TYPES = (
|
|||
),
|
||||
JustNimbusEntityDescription(
|
||||
key="error_code",
|
||||
name="Error code",
|
||||
translation_key="error_code",
|
||||
icon="mdi:bug",
|
||||
entity_registry_enabled_default=False,
|
||||
entity_category=EntityCategory.DIAGNOSTIC,
|
||||
|
@ -138,7 +138,7 @@ SENSOR_TYPES = (
|
|||
),
|
||||
JustNimbusEntityDescription(
|
||||
key="totver",
|
||||
name="Total use",
|
||||
translation_key="total_use",
|
||||
icon="mdi:chart-donut",
|
||||
native_unit_of_measurement=UnitOfVolume.LITERS,
|
||||
device_class=SensorDeviceClass.VOLUME,
|
||||
|
@ -148,7 +148,7 @@ SENSOR_TYPES = (
|
|||
),
|
||||
JustNimbusEntityDescription(
|
||||
key="reservoir_content_max",
|
||||
name="Max reservoir content",
|
||||
translation_key="reservoir_content_max",
|
||||
icon="mdi:waves",
|
||||
native_unit_of_measurement=UnitOfVolume.LITERS,
|
||||
device_class=SensorDeviceClass.VOLUME,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue