From 1fa7ceede390df037fe9bdb1ba4f7939c9acc138 Mon Sep 17 00:00:00 2001 From: Duco Sebel <74970928+DCSBL@users.noreply.github.com> Date: Thu, 25 Jan 2024 13:15:20 +0100 Subject: [PATCH] Use entity translations placeholders in HomeWizard (#108741) * Adopt Entity placeholders * Undo some snapshot changes --- homeassistant/components/homewizard/sensor.py | 69 ++++++++---- .../components/homewizard/strings.json | 76 +++---------- .../homewizard/snapshots/test_sensor.ambr | 102 +++++++++--------- 3 files changed, 111 insertions(+), 136 deletions(-) diff --git a/homeassistant/components/homewizard/sensor.py b/homeassistant/components/homewizard/sensor.py index f8a5b3b144a..01ad2d5ea57 100644 --- a/homeassistant/components/homewizard/sensor.py +++ b/homeassistant/components/homewizard/sensor.py @@ -117,7 +117,8 @@ SENSORS: Final[tuple[HomeWizardSensorEntityDescription, ...]] = ( ), HomeWizardSensorEntityDescription( key="total_power_import_t1_kwh", - translation_key="total_energy_import_t1_kwh", + translation_key="total_energy_import_tariff_kwh", + translation_placeholders={"tariff": "1"}, native_unit_of_measurement=UnitOfEnergy.KILO_WATT_HOUR, device_class=SensorDeviceClass.ENERGY, state_class=SensorStateClass.TOTAL_INCREASING, @@ -130,7 +131,8 @@ SENSORS: Final[tuple[HomeWizardSensorEntityDescription, ...]] = ( ), HomeWizardSensorEntityDescription( key="total_power_import_t2_kwh", - translation_key="total_energy_import_t2_kwh", + translation_key="total_energy_import_tariff_kwh", + translation_placeholders={"tariff": "2"}, native_unit_of_measurement=UnitOfEnergy.KILO_WATT_HOUR, device_class=SensorDeviceClass.ENERGY, state_class=SensorStateClass.TOTAL_INCREASING, @@ -139,7 +141,8 @@ SENSORS: Final[tuple[HomeWizardSensorEntityDescription, ...]] = ( ), HomeWizardSensorEntityDescription( key="total_power_import_t3_kwh", - translation_key="total_energy_import_t3_kwh", + translation_key="total_energy_import_tariff_kwh", + translation_placeholders={"tariff": "3"}, native_unit_of_measurement=UnitOfEnergy.KILO_WATT_HOUR, device_class=SensorDeviceClass.ENERGY, state_class=SensorStateClass.TOTAL_INCREASING, @@ -148,7 +151,8 @@ SENSORS: Final[tuple[HomeWizardSensorEntityDescription, ...]] = ( ), HomeWizardSensorEntityDescription( key="total_power_import_t4_kwh", - translation_key="total_energy_import_t4_kwh", + translation_key="total_energy_import_tariff_kwh", + translation_placeholders={"tariff": "4"}, native_unit_of_measurement=UnitOfEnergy.KILO_WATT_HOUR, device_class=SensorDeviceClass.ENERGY, state_class=SensorStateClass.TOTAL_INCREASING, @@ -167,7 +171,8 @@ SENSORS: Final[tuple[HomeWizardSensorEntityDescription, ...]] = ( ), HomeWizardSensorEntityDescription( key="total_power_export_t1_kwh", - translation_key="total_energy_export_t1_kwh", + translation_key="total_energy_export_tariff_kwh", + translation_placeholders={"tariff": "1"}, native_unit_of_measurement=UnitOfEnergy.KILO_WATT_HOUR, device_class=SensorDeviceClass.ENERGY, state_class=SensorStateClass.TOTAL_INCREASING, @@ -181,7 +186,8 @@ SENSORS: Final[tuple[HomeWizardSensorEntityDescription, ...]] = ( ), HomeWizardSensorEntityDescription( key="total_power_export_t2_kwh", - translation_key="total_energy_export_t2_kwh", + translation_key="total_energy_export_tariff_kwh", + translation_placeholders={"tariff": "2"}, native_unit_of_measurement=UnitOfEnergy.KILO_WATT_HOUR, device_class=SensorDeviceClass.ENERGY, state_class=SensorStateClass.TOTAL_INCREASING, @@ -191,7 +197,8 @@ SENSORS: Final[tuple[HomeWizardSensorEntityDescription, ...]] = ( ), HomeWizardSensorEntityDescription( key="total_power_export_t3_kwh", - translation_key="total_energy_export_t3_kwh", + translation_key="total_energy_export_tariff_kwh", + translation_placeholders={"tariff": "3"}, native_unit_of_measurement=UnitOfEnergy.KILO_WATT_HOUR, device_class=SensorDeviceClass.ENERGY, state_class=SensorStateClass.TOTAL_INCREASING, @@ -201,7 +208,8 @@ SENSORS: Final[tuple[HomeWizardSensorEntityDescription, ...]] = ( ), HomeWizardSensorEntityDescription( key="total_power_export_t4_kwh", - translation_key="total_energy_export_t4_kwh", + translation_key="total_energy_export_tariff_kwh", + translation_placeholders={"tariff": "4"}, native_unit_of_measurement=UnitOfEnergy.KILO_WATT_HOUR, device_class=SensorDeviceClass.ENERGY, state_class=SensorStateClass.TOTAL_INCREASING, @@ -221,7 +229,8 @@ SENSORS: Final[tuple[HomeWizardSensorEntityDescription, ...]] = ( ), HomeWizardSensorEntityDescription( key="active_power_l1_w", - translation_key="active_power_l1_w", + translation_key="active_power_phase_w", + translation_placeholders={"phase": "1"}, native_unit_of_measurement=UnitOfPower.WATT, device_class=SensorDeviceClass.POWER, state_class=SensorStateClass.MEASUREMENT, @@ -231,7 +240,8 @@ SENSORS: Final[tuple[HomeWizardSensorEntityDescription, ...]] = ( ), HomeWizardSensorEntityDescription( key="active_power_l2_w", - translation_key="active_power_l2_w", + translation_key="active_power_phase_w", + translation_placeholders={"phase": "2"}, native_unit_of_measurement=UnitOfPower.WATT, device_class=SensorDeviceClass.POWER, state_class=SensorStateClass.MEASUREMENT, @@ -241,7 +251,8 @@ SENSORS: Final[tuple[HomeWizardSensorEntityDescription, ...]] = ( ), HomeWizardSensorEntityDescription( key="active_power_l3_w", - translation_key="active_power_l3_w", + translation_key="active_power_phase_w", + translation_placeholders={"phase": "3"}, native_unit_of_measurement=UnitOfPower.WATT, device_class=SensorDeviceClass.POWER, state_class=SensorStateClass.MEASUREMENT, @@ -251,7 +262,8 @@ SENSORS: Final[tuple[HomeWizardSensorEntityDescription, ...]] = ( ), HomeWizardSensorEntityDescription( key="active_voltage_l1_v", - translation_key="active_voltage_l1_v", + translation_key="active_voltage_phase_v", + translation_placeholders={"phase": "1"}, native_unit_of_measurement=UnitOfElectricPotential.VOLT, device_class=SensorDeviceClass.VOLTAGE, state_class=SensorStateClass.MEASUREMENT, @@ -261,7 +273,8 @@ SENSORS: Final[tuple[HomeWizardSensorEntityDescription, ...]] = ( ), HomeWizardSensorEntityDescription( key="active_voltage_l2_v", - translation_key="active_voltage_l2_v", + translation_key="active_voltage_phase_v", + translation_placeholders={"phase": "2"}, native_unit_of_measurement=UnitOfElectricPotential.VOLT, device_class=SensorDeviceClass.VOLTAGE, state_class=SensorStateClass.MEASUREMENT, @@ -271,7 +284,8 @@ SENSORS: Final[tuple[HomeWizardSensorEntityDescription, ...]] = ( ), HomeWizardSensorEntityDescription( key="active_voltage_l3_v", - translation_key="active_voltage_l3_v", + translation_key="active_voltage_phase_v", + translation_placeholders={"phase": "3"}, native_unit_of_measurement=UnitOfElectricPotential.VOLT, device_class=SensorDeviceClass.VOLTAGE, state_class=SensorStateClass.MEASUREMENT, @@ -281,7 +295,8 @@ SENSORS: Final[tuple[HomeWizardSensorEntityDescription, ...]] = ( ), HomeWizardSensorEntityDescription( key="active_current_l1_a", - translation_key="active_current_l1_a", + translation_key="active_current_phase_a", + translation_placeholders={"phase": "1"}, native_unit_of_measurement=UnitOfElectricCurrent.AMPERE, device_class=SensorDeviceClass.CURRENT, state_class=SensorStateClass.MEASUREMENT, @@ -291,7 +306,8 @@ SENSORS: Final[tuple[HomeWizardSensorEntityDescription, ...]] = ( ), HomeWizardSensorEntityDescription( key="active_current_l2_a", - translation_key="active_current_l2_a", + translation_key="active_current_phase_a", + translation_placeholders={"phase": "2"}, native_unit_of_measurement=UnitOfElectricCurrent.AMPERE, device_class=SensorDeviceClass.CURRENT, state_class=SensorStateClass.MEASUREMENT, @@ -301,7 +317,8 @@ SENSORS: Final[tuple[HomeWizardSensorEntityDescription, ...]] = ( ), HomeWizardSensorEntityDescription( key="active_current_l3_a", - translation_key="active_current_l3_a", + translation_key="active_current_phase_a", + translation_placeholders={"phase": "3"}, native_unit_of_measurement=UnitOfElectricCurrent.AMPERE, device_class=SensorDeviceClass.CURRENT, state_class=SensorStateClass.MEASUREMENT, @@ -321,42 +338,48 @@ SENSORS: Final[tuple[HomeWizardSensorEntityDescription, ...]] = ( ), HomeWizardSensorEntityDescription( key="voltage_sag_l1_count", - translation_key="voltage_sag_l1_count", + translation_key="voltage_sag_phase_count", + translation_placeholders={"phase": "1"}, entity_category=EntityCategory.DIAGNOSTIC, has_fn=lambda data: data.voltage_sag_l1_count is not None, value_fn=lambda data: data.voltage_sag_l1_count, ), HomeWizardSensorEntityDescription( key="voltage_sag_l2_count", - translation_key="voltage_sag_l2_count", + translation_key="voltage_sag_phase_count", + translation_placeholders={"phase": "2"}, entity_category=EntityCategory.DIAGNOSTIC, has_fn=lambda data: data.voltage_sag_l2_count is not None, value_fn=lambda data: data.voltage_sag_l2_count, ), HomeWizardSensorEntityDescription( key="voltage_sag_l3_count", - translation_key="voltage_sag_l3_count", + translation_key="voltage_sag_phase_count", + translation_placeholders={"phase": "3"}, entity_category=EntityCategory.DIAGNOSTIC, has_fn=lambda data: data.voltage_sag_l3_count is not None, value_fn=lambda data: data.voltage_sag_l3_count, ), HomeWizardSensorEntityDescription( key="voltage_swell_l1_count", - translation_key="voltage_swell_l1_count", + translation_key="voltage_swell_phase_count", + translation_placeholders={"phase": "1"}, entity_category=EntityCategory.DIAGNOSTIC, has_fn=lambda data: data.voltage_swell_l1_count is not None, value_fn=lambda data: data.voltage_swell_l1_count, ), HomeWizardSensorEntityDescription( key="voltage_swell_l2_count", - translation_key="voltage_swell_l2_count", + translation_key="voltage_swell_phase_count", + translation_placeholders={"phase": "2"}, entity_category=EntityCategory.DIAGNOSTIC, has_fn=lambda data: data.voltage_swell_l2_count is not None, value_fn=lambda data: data.voltage_swell_l2_count, ), HomeWizardSensorEntityDescription( key="voltage_swell_l3_count", - translation_key="voltage_swell_l3_count", + translation_key="voltage_swell_phase_count", + translation_placeholders={"phase": "3"}, entity_category=EntityCategory.DIAGNOSTIC, has_fn=lambda data: data.voltage_swell_l3_count is not None, value_fn=lambda data: data.voltage_swell_l3_count, diff --git a/homeassistant/components/homewizard/strings.json b/homeassistant/components/homewizard/strings.json index d3cf8f88bed..58bdd8c6cb9 100644 --- a/homeassistant/components/homewizard/strings.json +++ b/homeassistant/components/homewizard/strings.json @@ -56,83 +56,35 @@ "total_energy_import_kwh": { "name": "Total energy import" }, - "total_energy_import_t1_kwh": { - "name": "Total energy import tariff 1" - }, - "total_energy_import_t2_kwh": { - "name": "Total energy import tariff 2" - }, - "total_energy_import_t3_kwh": { - "name": "Total energy import tariff 3" - }, - "total_energy_import_t4_kwh": { - "name": "Total energy import tariff 4" + "total_energy_import_tariff_kwh": { + "name": "Total energy import tariff {tariff}" }, "total_energy_export_kwh": { "name": "Total energy export" }, - "total_energy_export_t1_kwh": { - "name": "Total energy export tariff 1" - }, - "total_energy_export_t2_kwh": { - "name": "Total energy export tariff 2" - }, - "total_energy_export_t3_kwh": { - "name": "Total energy export tariff 3" - }, - "total_energy_export_t4_kwh": { - "name": "Total energy export tariff 4" + "total_energy_export_tariff_kwh": { + "name": "Total energy export tariff {tariff}" }, "active_power_w": { "name": "Active power" }, - "active_power_l1_w": { - "name": "Active power phase 1" + "active_power_phase_w": { + "name": "Active power phase {phase}" }, - "active_power_l2_w": { - "name": "Active power phase 2" + "active_voltage_phase_v": { + "name": "Active voltage phase {phase}" }, - "active_power_l3_w": { - "name": "Active power phase 3" - }, - "active_voltage_l1_v": { - "name": "Active voltage phase 1" - }, - "active_voltage_l2_v": { - "name": "Active voltage phase 2" - }, - "active_voltage_l3_v": { - "name": "Active voltage phase 3" - }, - "active_current_l1_a": { - "name": "Active current phase 1" - }, - "active_current_l2_a": { - "name": "Active current phase 2" - }, - "active_current_l3_a": { - "name": "Active current phase 3" + "active_current_phase_a": { + "name": "Active current phase {phase}" }, "active_frequency_hz": { "name": "Active frequency" }, - "voltage_sag_l1_count": { - "name": "Voltage sags detected phase 1" + "voltage_sag_phase_count": { + "name": "Voltage sags detected phase {phase}" }, - "voltage_sag_l2_count": { - "name": "Voltage sags detected phase 2" - }, - "voltage_sag_l3_count": { - "name": "Voltage sags detected phase 3" - }, - "voltage_swell_l1_count": { - "name": "Voltage swells detected phase 1" - }, - "voltage_swell_l2_count": { - "name": "Voltage swells detected phase 2" - }, - "voltage_swell_l3_count": { - "name": "Voltage swells detected phase 3" + "voltage_swell_phase_count": { + "name": "Voltage swells detected phase {phase}" }, "any_power_fail_count": { "name": "Power failures detected" diff --git a/tests/components/homewizard/snapshots/test_sensor.ambr b/tests/components/homewizard/snapshots/test_sensor.ambr index 7d98a10089f..cc5800acd7f 100644 --- a/tests/components/homewizard/snapshots/test_sensor.ambr +++ b/tests/components/homewizard/snapshots/test_sensor.ambr @@ -353,7 +353,7 @@ 'platform': 'homewizard', 'previous_unique_id': None, 'supported_features': 0, - 'translation_key': 'active_current_l1_a', + 'translation_key': 'active_current_phase_a', 'unique_id': 'aabbccddeeff_active_current_l1_a', 'unit_of_measurement': , }) @@ -433,7 +433,7 @@ 'platform': 'homewizard', 'previous_unique_id': None, 'supported_features': 0, - 'translation_key': 'active_current_l2_a', + 'translation_key': 'active_current_phase_a', 'unique_id': 'aabbccddeeff_active_current_l2_a', 'unit_of_measurement': , }) @@ -513,7 +513,7 @@ 'platform': 'homewizard', 'previous_unique_id': None, 'supported_features': 0, - 'translation_key': 'active_current_l3_a', + 'translation_key': 'active_current_phase_a', 'unique_id': 'aabbccddeeff_active_current_l3_a', 'unit_of_measurement': , }) @@ -759,7 +759,7 @@ 'platform': 'homewizard', 'previous_unique_id': None, 'supported_features': 0, - 'translation_key': 'active_power_l1_w', + 'translation_key': 'active_power_phase_w', 'unique_id': 'aabbccddeeff_active_power_l1_w', 'unit_of_measurement': , }) @@ -842,7 +842,7 @@ 'platform': 'homewizard', 'previous_unique_id': None, 'supported_features': 0, - 'translation_key': 'active_power_l2_w', + 'translation_key': 'active_power_phase_w', 'unique_id': 'aabbccddeeff_active_power_l2_w', 'unit_of_measurement': , }) @@ -925,7 +925,7 @@ 'platform': 'homewizard', 'previous_unique_id': None, 'supported_features': 0, - 'translation_key': 'active_power_l3_w', + 'translation_key': 'active_power_phase_w', 'unique_id': 'aabbccddeeff_active_power_l3_w', 'unit_of_measurement': , }) @@ -1094,7 +1094,7 @@ 'platform': 'homewizard', 'previous_unique_id': None, 'supported_features': 0, - 'translation_key': 'active_voltage_l1_v', + 'translation_key': 'active_voltage_phase_v', 'unique_id': 'aabbccddeeff_active_voltage_l1_v', 'unit_of_measurement': , }) @@ -1174,7 +1174,7 @@ 'platform': 'homewizard', 'previous_unique_id': None, 'supported_features': 0, - 'translation_key': 'active_voltage_l2_v', + 'translation_key': 'active_voltage_phase_v', 'unique_id': 'aabbccddeeff_active_voltage_l2_v', 'unit_of_measurement': , }) @@ -1254,7 +1254,7 @@ 'platform': 'homewizard', 'previous_unique_id': None, 'supported_features': 0, - 'translation_key': 'active_voltage_l3_v', + 'translation_key': 'active_voltage_phase_v', 'unique_id': 'aabbccddeeff_active_voltage_l3_v', 'unit_of_measurement': , }) @@ -2020,7 +2020,7 @@ 'platform': 'homewizard', 'previous_unique_id': None, 'supported_features': 0, - 'translation_key': 'total_energy_export_t1_kwh', + 'translation_key': 'total_energy_export_tariff_kwh', 'unique_id': 'aabbccddeeff_total_power_export_t1_kwh', 'unit_of_measurement': , }) @@ -2100,7 +2100,7 @@ 'platform': 'homewizard', 'previous_unique_id': None, 'supported_features': 0, - 'translation_key': 'total_energy_export_t2_kwh', + 'translation_key': 'total_energy_export_tariff_kwh', 'unique_id': 'aabbccddeeff_total_power_export_t2_kwh', 'unit_of_measurement': , }) @@ -2180,7 +2180,7 @@ 'platform': 'homewizard', 'previous_unique_id': None, 'supported_features': 0, - 'translation_key': 'total_energy_export_t3_kwh', + 'translation_key': 'total_energy_export_tariff_kwh', 'unique_id': 'aabbccddeeff_total_power_export_t3_kwh', 'unit_of_measurement': , }) @@ -2260,7 +2260,7 @@ 'platform': 'homewizard', 'previous_unique_id': None, 'supported_features': 0, - 'translation_key': 'total_energy_export_t4_kwh', + 'translation_key': 'total_energy_export_tariff_kwh', 'unique_id': 'aabbccddeeff_total_power_export_t4_kwh', 'unit_of_measurement': , }) @@ -2420,7 +2420,7 @@ 'platform': 'homewizard', 'previous_unique_id': None, 'supported_features': 0, - 'translation_key': 'total_energy_import_t1_kwh', + 'translation_key': 'total_energy_import_tariff_kwh', 'unique_id': 'aabbccddeeff_total_power_import_t1_kwh', 'unit_of_measurement': , }) @@ -2500,7 +2500,7 @@ 'platform': 'homewizard', 'previous_unique_id': None, 'supported_features': 0, - 'translation_key': 'total_energy_import_t2_kwh', + 'translation_key': 'total_energy_import_tariff_kwh', 'unique_id': 'aabbccddeeff_total_power_import_t2_kwh', 'unit_of_measurement': , }) @@ -2580,7 +2580,7 @@ 'platform': 'homewizard', 'previous_unique_id': None, 'supported_features': 0, - 'translation_key': 'total_energy_import_t3_kwh', + 'translation_key': 'total_energy_import_tariff_kwh', 'unique_id': 'aabbccddeeff_total_power_import_t3_kwh', 'unit_of_measurement': , }) @@ -2660,7 +2660,7 @@ 'platform': 'homewizard', 'previous_unique_id': None, 'supported_features': 0, - 'translation_key': 'total_energy_import_t4_kwh', + 'translation_key': 'total_energy_import_tariff_kwh', 'unique_id': 'aabbccddeeff_total_power_import_t4_kwh', 'unit_of_measurement': , }) @@ -2898,7 +2898,7 @@ 'platform': 'homewizard', 'previous_unique_id': None, 'supported_features': 0, - 'translation_key': 'voltage_sag_l1_count', + 'translation_key': 'voltage_sag_phase_count', 'unique_id': 'aabbccddeeff_voltage_sag_l1_count', 'unit_of_measurement': None, }) @@ -2973,7 +2973,7 @@ 'platform': 'homewizard', 'previous_unique_id': None, 'supported_features': 0, - 'translation_key': 'voltage_sag_l2_count', + 'translation_key': 'voltage_sag_phase_count', 'unique_id': 'aabbccddeeff_voltage_sag_l2_count', 'unit_of_measurement': None, }) @@ -3048,7 +3048,7 @@ 'platform': 'homewizard', 'previous_unique_id': None, 'supported_features': 0, - 'translation_key': 'voltage_sag_l3_count', + 'translation_key': 'voltage_sag_phase_count', 'unique_id': 'aabbccddeeff_voltage_sag_l3_count', 'unit_of_measurement': None, }) @@ -3123,7 +3123,7 @@ 'platform': 'homewizard', 'previous_unique_id': None, 'supported_features': 0, - 'translation_key': 'voltage_swell_l1_count', + 'translation_key': 'voltage_swell_phase_count', 'unique_id': 'aabbccddeeff_voltage_swell_l1_count', 'unit_of_measurement': None, }) @@ -3198,7 +3198,7 @@ 'platform': 'homewizard', 'previous_unique_id': None, 'supported_features': 0, - 'translation_key': 'voltage_swell_l2_count', + 'translation_key': 'voltage_swell_phase_count', 'unique_id': 'aabbccddeeff_voltage_swell_l2_count', 'unit_of_measurement': None, }) @@ -3273,7 +3273,7 @@ 'platform': 'homewizard', 'previous_unique_id': None, 'supported_features': 0, - 'translation_key': 'voltage_swell_l3_count', + 'translation_key': 'voltage_swell_phase_count', 'unique_id': 'aabbccddeeff_voltage_swell_l3_count', 'unit_of_measurement': None, }) @@ -4320,7 +4320,7 @@ 'platform': 'homewizard', 'previous_unique_id': None, 'supported_features': 0, - 'translation_key': 'active_current_l1_a', + 'translation_key': 'active_current_phase_a', 'unique_id': 'aabbccddeeff_active_current_l1_a', 'unit_of_measurement': , }) @@ -4400,7 +4400,7 @@ 'platform': 'homewizard', 'previous_unique_id': None, 'supported_features': 0, - 'translation_key': 'active_current_l2_a', + 'translation_key': 'active_current_phase_a', 'unique_id': 'aabbccddeeff_active_current_l2_a', 'unit_of_measurement': , }) @@ -4480,7 +4480,7 @@ 'platform': 'homewizard', 'previous_unique_id': None, 'supported_features': 0, - 'translation_key': 'active_current_l3_a', + 'translation_key': 'active_current_phase_a', 'unique_id': 'aabbccddeeff_active_current_l3_a', 'unit_of_measurement': , }) @@ -4726,7 +4726,7 @@ 'platform': 'homewizard', 'previous_unique_id': None, 'supported_features': 0, - 'translation_key': 'active_power_l1_w', + 'translation_key': 'active_power_phase_w', 'unique_id': 'aabbccddeeff_active_power_l1_w', 'unit_of_measurement': , }) @@ -4809,7 +4809,7 @@ 'platform': 'homewizard', 'previous_unique_id': None, 'supported_features': 0, - 'translation_key': 'active_power_l2_w', + 'translation_key': 'active_power_phase_w', 'unique_id': 'aabbccddeeff_active_power_l2_w', 'unit_of_measurement': , }) @@ -4892,7 +4892,7 @@ 'platform': 'homewizard', 'previous_unique_id': None, 'supported_features': 0, - 'translation_key': 'active_power_l3_w', + 'translation_key': 'active_power_phase_w', 'unique_id': 'aabbccddeeff_active_power_l3_w', 'unit_of_measurement': , }) @@ -4972,7 +4972,7 @@ 'platform': 'homewizard', 'previous_unique_id': None, 'supported_features': 0, - 'translation_key': 'active_voltage_l1_v', + 'translation_key': 'active_voltage_phase_v', 'unique_id': 'aabbccddeeff_active_voltage_l1_v', 'unit_of_measurement': , }) @@ -5052,7 +5052,7 @@ 'platform': 'homewizard', 'previous_unique_id': None, 'supported_features': 0, - 'translation_key': 'active_voltage_l2_v', + 'translation_key': 'active_voltage_phase_v', 'unique_id': 'aabbccddeeff_active_voltage_l2_v', 'unit_of_measurement': , }) @@ -5132,7 +5132,7 @@ 'platform': 'homewizard', 'previous_unique_id': None, 'supported_features': 0, - 'translation_key': 'active_voltage_l3_v', + 'translation_key': 'active_voltage_phase_v', 'unique_id': 'aabbccddeeff_active_voltage_l3_v', 'unit_of_measurement': , }) @@ -5598,7 +5598,7 @@ 'platform': 'homewizard', 'previous_unique_id': None, 'supported_features': 0, - 'translation_key': 'total_energy_export_t1_kwh', + 'translation_key': 'total_energy_export_tariff_kwh', 'unique_id': 'aabbccddeeff_total_power_export_t1_kwh', 'unit_of_measurement': , }) @@ -5678,7 +5678,7 @@ 'platform': 'homewizard', 'previous_unique_id': None, 'supported_features': 0, - 'translation_key': 'total_energy_export_t2_kwh', + 'translation_key': 'total_energy_export_tariff_kwh', 'unique_id': 'aabbccddeeff_total_power_export_t2_kwh', 'unit_of_measurement': , }) @@ -5758,7 +5758,7 @@ 'platform': 'homewizard', 'previous_unique_id': None, 'supported_features': 0, - 'translation_key': 'total_energy_export_t3_kwh', + 'translation_key': 'total_energy_export_tariff_kwh', 'unique_id': 'aabbccddeeff_total_power_export_t3_kwh', 'unit_of_measurement': , }) @@ -5838,7 +5838,7 @@ 'platform': 'homewizard', 'previous_unique_id': None, 'supported_features': 0, - 'translation_key': 'total_energy_export_t4_kwh', + 'translation_key': 'total_energy_export_tariff_kwh', 'unique_id': 'aabbccddeeff_total_power_export_t4_kwh', 'unit_of_measurement': , }) @@ -5998,7 +5998,7 @@ 'platform': 'homewizard', 'previous_unique_id': None, 'supported_features': 0, - 'translation_key': 'total_energy_import_t1_kwh', + 'translation_key': 'total_energy_import_tariff_kwh', 'unique_id': 'aabbccddeeff_total_power_import_t1_kwh', 'unit_of_measurement': , }) @@ -6078,7 +6078,7 @@ 'platform': 'homewizard', 'previous_unique_id': None, 'supported_features': 0, - 'translation_key': 'total_energy_import_t2_kwh', + 'translation_key': 'total_energy_import_tariff_kwh', 'unique_id': 'aabbccddeeff_total_power_import_t2_kwh', 'unit_of_measurement': , }) @@ -6158,7 +6158,7 @@ 'platform': 'homewizard', 'previous_unique_id': None, 'supported_features': 0, - 'translation_key': 'total_energy_import_t3_kwh', + 'translation_key': 'total_energy_import_tariff_kwh', 'unique_id': 'aabbccddeeff_total_power_import_t3_kwh', 'unit_of_measurement': , }) @@ -6238,7 +6238,7 @@ 'platform': 'homewizard', 'previous_unique_id': None, 'supported_features': 0, - 'translation_key': 'total_energy_import_t4_kwh', + 'translation_key': 'total_energy_import_tariff_kwh', 'unique_id': 'aabbccddeeff_total_power_import_t4_kwh', 'unit_of_measurement': , }) @@ -6476,7 +6476,7 @@ 'platform': 'homewizard', 'previous_unique_id': None, 'supported_features': 0, - 'translation_key': 'voltage_sag_l1_count', + 'translation_key': 'voltage_sag_phase_count', 'unique_id': 'aabbccddeeff_voltage_sag_l1_count', 'unit_of_measurement': None, }) @@ -6551,7 +6551,7 @@ 'platform': 'homewizard', 'previous_unique_id': None, 'supported_features': 0, - 'translation_key': 'voltage_sag_l2_count', + 'translation_key': 'voltage_sag_phase_count', 'unique_id': 'aabbccddeeff_voltage_sag_l2_count', 'unit_of_measurement': None, }) @@ -6626,7 +6626,7 @@ 'platform': 'homewizard', 'previous_unique_id': None, 'supported_features': 0, - 'translation_key': 'voltage_sag_l3_count', + 'translation_key': 'voltage_sag_phase_count', 'unique_id': 'aabbccddeeff_voltage_sag_l3_count', 'unit_of_measurement': None, }) @@ -6701,7 +6701,7 @@ 'platform': 'homewizard', 'previous_unique_id': None, 'supported_features': 0, - 'translation_key': 'voltage_swell_l1_count', + 'translation_key': 'voltage_swell_phase_count', 'unique_id': 'aabbccddeeff_voltage_swell_l1_count', 'unit_of_measurement': None, }) @@ -6776,7 +6776,7 @@ 'platform': 'homewizard', 'previous_unique_id': None, 'supported_features': 0, - 'translation_key': 'voltage_swell_l2_count', + 'translation_key': 'voltage_swell_phase_count', 'unique_id': 'aabbccddeeff_voltage_swell_l2_count', 'unit_of_measurement': None, }) @@ -6851,7 +6851,7 @@ 'platform': 'homewizard', 'previous_unique_id': None, 'supported_features': 0, - 'translation_key': 'voltage_swell_l3_count', + 'translation_key': 'voltage_swell_phase_count', 'unique_id': 'aabbccddeeff_voltage_swell_l3_count', 'unit_of_measurement': None, }) @@ -7014,7 +7014,7 @@ 'platform': 'homewizard', 'previous_unique_id': None, 'supported_features': 0, - 'translation_key': 'active_power_l1_w', + 'translation_key': 'active_power_phase_w', 'unique_id': 'aabbccddeeff_active_power_l1_w', 'unit_of_measurement': , }) @@ -7807,7 +7807,7 @@ 'platform': 'homewizard', 'previous_unique_id': None, 'supported_features': 0, - 'translation_key': 'active_power_l1_w', + 'translation_key': 'active_power_phase_w', 'unique_id': 'aabbccddeeff_active_power_l1_w', 'unit_of_measurement': , }) @@ -8287,7 +8287,7 @@ 'platform': 'homewizard', 'previous_unique_id': None, 'supported_features': 0, - 'translation_key': 'active_power_l1_w', + 'translation_key': 'active_power_phase_w', 'unique_id': 'aabbccddeeff_active_power_l1_w', 'unit_of_measurement': , }) @@ -8370,7 +8370,7 @@ 'platform': 'homewizard', 'previous_unique_id': None, 'supported_features': 0, - 'translation_key': 'active_power_l2_w', + 'translation_key': 'active_power_phase_w', 'unique_id': 'aabbccddeeff_active_power_l2_w', 'unit_of_measurement': , }) @@ -8453,7 +8453,7 @@ 'platform': 'homewizard', 'previous_unique_id': None, 'supported_features': 0, - 'translation_key': 'active_power_l3_w', + 'translation_key': 'active_power_phase_w', 'unique_id': 'aabbccddeeff_active_power_l3_w', 'unit_of_measurement': , })