Skip to content

Commit

Permalink
fix: fix saving of websocket battery level
Browse files Browse the repository at this point in the history
  • Loading branch information
alandtse committed Jan 31, 2020
1 parent d7b1f5c commit 8907238
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion teslajsonpy/controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -745,7 +745,7 @@ def _process_websocket_message(self, data):
self.__state[vin]["timestamp"] = update_json["timestamp"]
self.__driving[vin]["speed"] = update_json["speed"]
self.__state[vin]["odometer"] = update_json["odometer"]
self.__charging[vin]["odometer"] = update_json["soc"]
self.__charging[vin]["battery_level"] = update_json["soc"]
# self.__state[vin]["odometer"] = update_json["elevation"]
# no current elevation stored
self.__driving[vin]["heading"] = update_json["est_heading"]
Expand Down

0 comments on commit 8907238

Please sign in to comment.