Add nut icon translations (#108471)

pull/108431/head^2
Jan Rieger 2024-01-20 21:17:28 +01:00 committed by GitHub
parent d81682e02a
commit a042073d2f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 120 additions and 38 deletions

View File

@ -0,0 +1,120 @@
{
"entity": {
"sensor": {
"ups_status_display": {
"default": "mdi:information-outline"
},
"ups_status": {
"default": "mdi:information-outline"
},
"ups_alarm": {
"default": "mdi:alarm"
},
"ups_load": {
"default": "mdi:gauge"
},
"ups_load_high": {
"default": "mdi:gauge"
},
"ups_id": {
"default": "mdi:information-outline"
},
"ups_test_result": {
"default": "mdi:information-outline"
},
"ups_test_date": {
"default": "mdi:calendar"
},
"ups_display_language": {
"default": "mdi:information-outline"
},
"ups_contacts": {
"default": "mdi:information-outline"
},
"ups_efficiency": {
"default": "mdi:gauge"
},
"ups_beeper_status": {
"default": "mdi:information-outline"
},
"ups_type": {
"default": "mdi:information-outline"
},
"ups_watchdog_status": {
"default": "mdi:information-outline"
},
"ups_start_auto": {
"default": "mdi:information-outline"
},
"ups_start_battery": {
"default": "mdi:information-outline"
},
"ups_start_reboot": {
"default": "mdi:information-outline"
},
"ups_shutdown": {
"default": "mdi:information-outline"
},
"battery_charge_low": {
"default": "mdi:gauge"
},
"battery_charge_restart": {
"default": "mdi:gauge"
},
"battery_charge_warning": {
"default": "mdi:gauge"
},
"battery_charger_status": {
"default": "mdi:information-outline"
},
"battery_capacity": {
"default": "mdi:flash"
},
"battery_alarm_threshold": {
"default": "mdi:information-outline"
},
"battery_date": {
"default": "mdi:calendar"
},
"battery_mfr_date": {
"default": "mdi:calendar"
},
"battery_packs": {
"default": "mdi:information-outline"
},
"battery_packs_bad": {
"default": "mdi:information-outline"
},
"battery_type": {
"default": "mdi:information-outline"
},
"input_sensitivity": {
"default": "mdi:information-outline"
},
"input_transfer_reason": {
"default": "mdi:information-outline"
},
"input_frequency_status": {
"default": "mdi:information-outline"
},
"input_bypass_phases": {
"default": "mdi:information-outline"
},
"input_phases": {
"default": "mdi:information-outline"
},
"output_l1_power_percent": {
"default": "mdi:gauge"
},
"output_l2_power_percent": {
"default": "mdi:gauge"
},
"output_l3_power_percent": {
"default": "mdi:gauge"
},
"output_phases": {
"default": "mdi:information-outline"
}
}
}
}

View File

@ -58,17 +58,14 @@ SENSOR_TYPES: Final[dict[str, SensorEntityDescription]] = {
"ups.status.display": SensorEntityDescription(
key="ups.status.display",
translation_key="ups_status_display",
icon="mdi:information-outline",
),
"ups.status": SensorEntityDescription(
key="ups.status",
translation_key="ups_status",
icon="mdi:information-outline",
),
"ups.alarm": SensorEntityDescription(
key="ups.alarm",
translation_key="ups_alarm",
icon="mdi:alarm",
),
"ups.temperature": SensorEntityDescription(
key="ups.temperature",
@ -83,21 +80,18 @@ SENSOR_TYPES: Final[dict[str, SensorEntityDescription]] = {
key="ups.load",
translation_key="ups_load",
native_unit_of_measurement=PERCENTAGE,
icon="mdi:gauge",
state_class=SensorStateClass.MEASUREMENT,
),
"ups.load.high": SensorEntityDescription(
key="ups.load.high",
translation_key="ups_load_high",
native_unit_of_measurement=PERCENTAGE,
icon="mdi:gauge",
entity_category=EntityCategory.DIAGNOSTIC,
entity_registry_enabled_default=False,
),
"ups.id": SensorEntityDescription(
key="ups.id",
translation_key="ups_id",
icon="mdi:information-outline",
entity_category=EntityCategory.DIAGNOSTIC,
entity_registry_enabled_default=False,
),
@ -160,28 +154,24 @@ SENSOR_TYPES: Final[dict[str, SensorEntityDescription]] = {
"ups.test.result": SensorEntityDescription(
key="ups.test.result",
translation_key="ups_test_result",
icon="mdi:information-outline",
entity_category=EntityCategory.DIAGNOSTIC,
entity_registry_enabled_default=False,
),
"ups.test.date": SensorEntityDescription(
key="ups.test.date",
translation_key="ups_test_date",
icon="mdi:calendar",
entity_category=EntityCategory.DIAGNOSTIC,
entity_registry_enabled_default=False,
),
"ups.display.language": SensorEntityDescription(
key="ups.display.language",
translation_key="ups_display_language",
icon="mdi:information-outline",
entity_category=EntityCategory.DIAGNOSTIC,
entity_registry_enabled_default=False,
),
"ups.contacts": SensorEntityDescription(
key="ups.contacts",
translation_key="ups_contacts",
icon="mdi:information-outline",
entity_category=EntityCategory.DIAGNOSTIC,
entity_registry_enabled_default=False,
),
@ -189,7 +179,6 @@ SENSOR_TYPES: Final[dict[str, SensorEntityDescription]] = {
key="ups.efficiency",
translation_key="ups_efficiency",
native_unit_of_measurement=PERCENTAGE,
icon="mdi:gauge",
state_class=SensorStateClass.MEASUREMENT,
entity_category=EntityCategory.DIAGNOSTIC,
entity_registry_enabled_default=False,
@ -231,49 +220,42 @@ SENSOR_TYPES: Final[dict[str, SensorEntityDescription]] = {
"ups.beeper.status": SensorEntityDescription(
key="ups.beeper.status",
translation_key="ups_beeper_status",
icon="mdi:information-outline",
entity_category=EntityCategory.DIAGNOSTIC,
entity_registry_enabled_default=False,
),
"ups.type": SensorEntityDescription(
key="ups.type",
translation_key="ups_type",
icon="mdi:information-outline",
entity_category=EntityCategory.DIAGNOSTIC,
entity_registry_enabled_default=False,
),
"ups.watchdog.status": SensorEntityDescription(
key="ups.watchdog.status",
translation_key="ups_watchdog_status",
icon="mdi:information-outline",
entity_category=EntityCategory.DIAGNOSTIC,
entity_registry_enabled_default=False,
),
"ups.start.auto": SensorEntityDescription(
key="ups.start.auto",
translation_key="ups_start_auto",
icon="mdi:information-outline",
entity_category=EntityCategory.DIAGNOSTIC,
entity_registry_enabled_default=False,
),
"ups.start.battery": SensorEntityDescription(
key="ups.start.battery",
translation_key="ups_start_battery",
icon="mdi:information-outline",
entity_category=EntityCategory.DIAGNOSTIC,
entity_registry_enabled_default=False,
),
"ups.start.reboot": SensorEntityDescription(
key="ups.start.reboot",
translation_key="ups_start_reboot",
icon="mdi:information-outline",
entity_category=EntityCategory.DIAGNOSTIC,
entity_registry_enabled_default=False,
),
"ups.shutdown": SensorEntityDescription(
key="ups.shutdown",
translation_key="ups_shutdown",
icon="mdi:information-outline",
entity_category=EntityCategory.DIAGNOSTIC,
entity_registry_enabled_default=False,
),
@ -288,7 +270,6 @@ SENSOR_TYPES: Final[dict[str, SensorEntityDescription]] = {
key="battery.charge.low",
translation_key="battery_charge_low",
native_unit_of_measurement=PERCENTAGE,
icon="mdi:gauge",
entity_category=EntityCategory.DIAGNOSTIC,
entity_registry_enabled_default=False,
),
@ -296,7 +277,6 @@ SENSOR_TYPES: Final[dict[str, SensorEntityDescription]] = {
key="battery.charge.restart",
translation_key="battery_charge_restart",
native_unit_of_measurement=PERCENTAGE,
icon="mdi:gauge",
entity_category=EntityCategory.DIAGNOSTIC,
entity_registry_enabled_default=False,
),
@ -304,14 +284,12 @@ SENSOR_TYPES: Final[dict[str, SensorEntityDescription]] = {
key="battery.charge.warning",
translation_key="battery_charge_warning",
native_unit_of_measurement=PERCENTAGE,
icon="mdi:gauge",
entity_category=EntityCategory.DIAGNOSTIC,
entity_registry_enabled_default=False,
),
"battery.charger.status": SensorEntityDescription(
key="battery.charger.status",
translation_key="battery_charger_status",
icon="mdi:information-outline",
),
"battery.voltage": SensorEntityDescription(
key="battery.voltage",
@ -350,7 +328,6 @@ SENSOR_TYPES: Final[dict[str, SensorEntityDescription]] = {
key="battery.capacity",
translation_key="battery_capacity",
native_unit_of_measurement="Ah",
icon="mdi:flash",
entity_category=EntityCategory.DIAGNOSTIC,
entity_registry_enabled_default=False,
),
@ -407,49 +384,42 @@ SENSOR_TYPES: Final[dict[str, SensorEntityDescription]] = {
"battery.alarm.threshold": SensorEntityDescription(
key="battery.alarm.threshold",
translation_key="battery_alarm_threshold",
icon="mdi:information-outline",
entity_category=EntityCategory.DIAGNOSTIC,
entity_registry_enabled_default=False,
),
"battery.date": SensorEntityDescription(
key="battery.date",
translation_key="battery_date",
icon="mdi:calendar",
entity_category=EntityCategory.DIAGNOSTIC,
entity_registry_enabled_default=False,
),
"battery.mfr.date": SensorEntityDescription(
key="battery.mfr.date",
translation_key="battery_mfr_date",
icon="mdi:calendar",
entity_category=EntityCategory.DIAGNOSTIC,
entity_registry_enabled_default=False,
),
"battery.packs": SensorEntityDescription(
key="battery.packs",
translation_key="battery_packs",
icon="mdi:information-outline",
entity_category=EntityCategory.DIAGNOSTIC,
entity_registry_enabled_default=False,
),
"battery.packs.bad": SensorEntityDescription(
key="battery.packs.bad",
translation_key="battery_packs_bad",
icon="mdi:information-outline",
entity_category=EntityCategory.DIAGNOSTIC,
entity_registry_enabled_default=False,
),
"battery.type": SensorEntityDescription(
key="battery.type",
translation_key="battery_type",
icon="mdi:information-outline",
entity_category=EntityCategory.DIAGNOSTIC,
entity_registry_enabled_default=False,
),
"input.sensitivity": SensorEntityDescription(
key="input.sensitivity",
translation_key="input_sensitivity",
icon="mdi:information-outline",
entity_category=EntityCategory.DIAGNOSTIC,
entity_registry_enabled_default=False,
),
@ -472,7 +442,6 @@ SENSOR_TYPES: Final[dict[str, SensorEntityDescription]] = {
"input.transfer.reason": SensorEntityDescription(
key="input.transfer.reason",
translation_key="input_transfer_reason",
icon="mdi:information-outline",
entity_category=EntityCategory.DIAGNOSTIC,
entity_registry_enabled_default=False,
),
@ -538,7 +507,6 @@ SENSOR_TYPES: Final[dict[str, SensorEntityDescription]] = {
"input.frequency.status": SensorEntityDescription(
key="input.frequency.status",
translation_key="input_frequency_status",
icon="mdi:information-outline",
entity_category=EntityCategory.DIAGNOSTIC,
entity_registry_enabled_default=False,
),
@ -617,7 +585,6 @@ SENSOR_TYPES: Final[dict[str, SensorEntityDescription]] = {
"input.bypass.phases": SensorEntityDescription(
key="input.bypass.phases",
translation_key="input_bypass_phases",
icon="mdi:information-outline",
entity_category=EntityCategory.DIAGNOSTIC,
entity_registry_enabled_default=False,
),
@ -732,7 +699,6 @@ SENSOR_TYPES: Final[dict[str, SensorEntityDescription]] = {
"input.phases": SensorEntityDescription(
key="input.phases",
translation_key="input_phases",
icon="mdi:information-outline",
entity_category=EntityCategory.DIAGNOSTIC,
entity_registry_enabled_default=False,
),
@ -784,7 +750,6 @@ SENSOR_TYPES: Final[dict[str, SensorEntityDescription]] = {
key="output.L1.power.percent",
translation_key="output_l1_power_percent",
native_unit_of_measurement=PERCENTAGE,
icon="mdi:gauge",
entity_category=EntityCategory.DIAGNOSTIC,
entity_registry_enabled_default=False,
),
@ -792,7 +757,6 @@ SENSOR_TYPES: Final[dict[str, SensorEntityDescription]] = {
key="output.L2.power.percent",
translation_key="output_l2_power_percent",
native_unit_of_measurement=PERCENTAGE,
icon="mdi:gauge",
entity_category=EntityCategory.DIAGNOSTIC,
entity_registry_enabled_default=False,
),
@ -800,7 +764,6 @@ SENSOR_TYPES: Final[dict[str, SensorEntityDescription]] = {
key="output.L3.power.percent",
translation_key="output_l3_power_percent",
native_unit_of_measurement=PERCENTAGE,
icon="mdi:gauge",
entity_category=EntityCategory.DIAGNOSTIC,
entity_registry_enabled_default=False,
),
@ -910,7 +873,6 @@ SENSOR_TYPES: Final[dict[str, SensorEntityDescription]] = {
"output.phases": SensorEntityDescription(
key="output.phases",
translation_key="output_phases",
icon="mdi:information-outline",
entity_category=EntityCategory.DIAGNOSTIC,
entity_registry_enabled_default=False,
),