Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Set stopAskingToStartCharging when vehicle not at home
Browse files Browse the repository at this point in the history
RichieB2B committed Jun 12, 2024
1 parent 5773969 commit 55a2c09
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion lib/TWCManager/Vehicle/TeslaAPI.py
Original file line number Diff line number Diff line change
@@ -645,12 +645,17 @@ def car_api_charge(self, charge):

if not vehicle.atHome:
# Vehicle is not at home, so don't change its charge state.
logger.info(
message = (
vehicle.name
+ " is not at home. Do not "
+ startOrStop
+ " charge."
)
# Stop asking to start charging when not at home.
if startOrStop == "start":
vehicle.stopAskingToStartCharging = True
message += " Stop asking to start charging."
logger.info(message)
continue

# If you send charge_start/stop less than 1 second after calling

0 comments on commit 55a2c09

Please sign in to comment.