Skip to content

Commit

Permalink
Need to poll more often after wakeUp or the vehicle goes back to sleep
Browse files Browse the repository at this point in the history
  • Loading branch information
fredli74 committed Sep 27, 2024
1 parent e8beb93 commit e1f2042
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions providers/tesla/tesla-agent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,7 @@ export class TeslaAgent extends AbstractAgent {
if (data && data.response && data.response.state === "online") {
subject.online = true;
}
this.adjustInterval(job, 30); // poll more often after wakeup
}
if (subject.online) {
this.stayOnline(subject);
Expand Down

0 comments on commit e1f2042

Please sign in to comment.