Skip to content

Commit e0b6a80

Browse files
Update vehicle.py
1 parent 911d3f4 commit e0b6a80

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

weconnect/elements/vehicle.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,7 @@ def updateStatus(self, updateCapabilities: bool = True, force: bool = False): #
272272
for statusId, error in data['error'].items():
273273
if statusId in self.statuses:
274274
self.statuses[statusId].updateError(fromDict=error)
275-
elif status in keyClassMap:
275+
elif statusId in keyClassMap:
276276
self.statuses[statusId] = keyClassMap[statusId](vehicle=self, parent=self.statuses, statusId=statusId,
277277
fromDict=None, fixAPI=self.fixAPI)
278278
self.statuses[statusId].updateError(fromDict=error)

0 commit comments

Comments
 (0)