From 7930f04883d0eaa85c3b43e46016b38effa95458 Mon Sep 17 00:00:00 2001 From: Daniel nix Date: Mon, 9 Oct 2023 17:59:16 +0200 Subject: [PATCH 1/2] Update en.json fixed typo Electricty --- .../myenergy/translations/en.json | 26 +++++++++---------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/custom_components/myenergy/translations/en.json b/custom_components/myenergy/translations/en.json index 0260303..3cc279e 100644 --- a/custom_components/myenergy/translations/en.json +++ b/custom_components/myenergy/translations/en.json @@ -11,13 +11,13 @@ "night_electricity_consumption": "Average electricity consumption per year nighttime and weekend (kWh)", "excl_night_electricity_consumption": "Average electricity consumption per year exclusive nighttime (kWh)", "solar_panels": "Solar panels", - "electricity_injection": "Electricty injection (kWh)", - "electricity_injection_night": "Electricty injection night and weekend (kWh)", + "electricity_injection": "Electricity injection (kWh)", + "electricity_injection_night": "Electricity injection night and weekend (kWh)", "inverter_power": "What is the total power of the inverter(s) of your installation?", - "electricity_provider": "Select your current electricty provider", + "electricity_provider": "Select your current electricity provider", "electric_car": "Electrical car", "gas_consumption": "Average gas consumption per year (kWh)", - "combine_elec_and_gas": "Combine electricty and gas from the same provider", + "combine_elec_and_gas": "Combine electricity and gas from the same provider", "gas_provider": "Select your current gas provider", "directdebit_invoice": "Mandatory payment of invoice by direct debit", "email_invoice": "Send invoice only via e-mail", @@ -33,13 +33,13 @@ "night_electricity_consumption": "Average electricity consumption per year nighttime and weekend (kWh)", "excl_night_electricity_consumption": "Average electricity consumption per year exclusive nighttime (kWh)", "solar_panels": "Solar panels", - "electricity_injection": "Electricty injection (kWh)", - "electricity_injection_night": "Electricty injection night and weekend (kWh)", + "electricity_injection": "Electricity injection (kWh)", + "electricity_injection_night": "Electricity injection night and weekend (kWh)", "inverter_power": "What is the total power of the inverter(s) of your installation?", - "electricity_provider": "Select your current electricty provider", + "electricity_provider": "Select your current electricity provider", "electric_car": "Electrical car", "gas_consumption": "Average gas consumption per year (kWh)", - "combine_elec_and_gas": "Combine electricty and gas from the same provider", + "combine_elec_and_gas": "Combine electricity and gas from the same provider", "gas_provider": "Select your current gas provider", "directdebit_invoice": "Mandatory payment of invoice by direct debit", "email_invoice": "Send invoice only via e-mail", @@ -64,13 +64,13 @@ "night_electricity_consumption": "Average electricity consumption per year nighttime and weekend (kWh)", "excl_night_electricity_consumption": "Average electricity consumption per year exclusive nighttime (kWh)", "solar_panels": "Solar panels", - "electricity_injection": "Electricty injection (kWh)", - "electricity_injection_night": "Electricty injection night and weekend (kWh)", + "electricity_injection": "Electricity injection (kWh)", + "electricity_injection_night": "Electricity injection night and weekend (kWh)", "inverter_power": "What is the total power of the inverter(s) of your installation?", - "electricity_provider": "Select your current electricty provider", + "electricity_provider": "Select your current electricity provider", "electric_car": "Electrical car", "gas_consumption": "Average gas consumption per year (kWh)", - "combine_elec_and_gas": "Combine electricty and gas from the same provider", + "combine_elec_and_gas": "Combine electricity and gas from the same provider", "gas_provider": "Select your current gas provider", "directdebit_invoice": "Mandatory payment of invoice by direct debit", "email_invoice": "Send invoice only via e-mail", @@ -83,4 +83,4 @@ "no_valid_settings": "No valid settings check in ha config." } } -} \ No newline at end of file +} From dbc35df63559b65618d83e8f28ec6cbd63659bc7 Mon Sep 17 00:00:00 2001 From: Daniel nix Date: Mon, 9 Oct 2023 18:05:21 +0200 Subject: [PATCH 2/2] Update utils.py fixed other typo Electricty --- custom_components/myenergy/utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/custom_components/myenergy/utils.py b/custom_components/myenergy/utils.py index 2302f2a..5c6be0e 100644 --- a/custom_components/myenergy/utils.py +++ b/custom_components/myenergy/utils.py @@ -22,7 +22,7 @@ class FuelType(Enum): GAS = ("G","Aardgas","Gas") - ELECTRICITY = ("E","Elektriciteit","Electricty") + ELECTRICITY = ("E","Elektriciteit","Electricity") COMBINED = ("C","Elektriciteit en aardgas","Electricity and Gas") def __init__(self, code,fullnameNL, fullnameEN): @@ -185,4 +185,4 @@ def get_data(self, config, contract_type: ContractType): result[sectionName] = providerdetails_array return result - \ No newline at end of file +