We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 0bef2b3 + da85c05 commit a9fe317Copy full SHA for a9fe317
tesla_fleet_api/tesla/vehicle/commands.py
@@ -183,7 +183,7 @@ def update(self, sessionInfo: SessionInfo):
183
self.counter = sessionInfo.counter
184
self.epoch = sessionInfo.epoch
185
self.delta = int(time.time()) - sessionInfo.clock_time
186
- if (not self.ready or self.publicKey != sessionInfo.publicKey):
+ if (not self.ready or getattr(self, "publicKey", "None") != sessionInfo.publicKey):
187
self.publicKey = sessionInfo.publicKey
188
self.sharedKey = self.parent.shared_key(sessionInfo.publicKey)
189
self.hmac = hmac.new(self.sharedKey, "authenticated command".encode(), hashlib.sha256).digest()
0 commit comments