Skip to content

Commit

Permalink
Update evcharger_requests.py
Browse files Browse the repository at this point in the history
  • Loading branch information
moerpel authored Jun 1, 2024
1 parent a353074 commit 2bed2aa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion custom_components/HA_SMA_EVCharger/evcharger_requests.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit 2bed2aa

Please sign in to comment.