Skip to content

Commit

Permalink
Avoid turning on charger during intialization.
Browse files Browse the repository at this point in the history
  • Loading branch information
jonasbkarlsson authored Aug 15, 2024
1 parent 9017d33 commit 8444683
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion custom_components/ev_smart_charging/coordinator.py
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,7 @@ async def update_state(
_LOGGER.debug("is_during_intialization() = True")

# Handle connected EV for EV controlled charging
if self.after_ev_connected:
if self.after_ev_connected and not self.is_during_intialization():
self.after_ev_connected = False
# Make sure charging command is sent
current_value = not turn_on_charging
Expand Down

0 comments on commit 8444683

Please sign in to comment.