From 2bed2aabf7d1af0f5faaa37bbd6c62002096f1b1 Mon Sep 17 00:00:00 2001 From: moerpel <66588833+moerpel@users.noreply.github.com> Date: Sat, 1 Jun 2024 14:03:02 +0200 Subject: [PATCH] Update evcharger_requests.py --- custom_components/HA_SMA_EVCharger/evcharger_requests.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/custom_components/HA_SMA_EVCharger/evcharger_requests.py b/custom_components/HA_SMA_EVCharger/evcharger_requests.py index fdfb6de..a58368a 100644 --- a/custom_components/HA_SMA_EVCharger/evcharger_requests.py +++ b/custom_components/HA_SMA_EVCharger/evcharger_requests.py @@ -113,7 +113,7 @@ def get_data(self): elif channel == "Measurement.Operation.EVeh.ChaStt": evcharger_charging_status_raw = value # Charging Status elif channel == "Measurement.Metering.GridMs.TotWhIn.ChaSta": - evcharger_energy_counter__ChargingStation_total_Wh = value / 1000 # Energy Counter overall charging station Convert to kWh + evcharger_energy_counter_ChargingStation_total_Wh = value / 1000 # Energy Counter overall charging station Convert to kWh if evcharger_current_power is None or evcharger_total_energy is None or evcharger_connection_status_raw is None or evcharger_mode_switch is None: _LOGGER.error("Failed to retrieve necessary data from the API response")