Skip to content

Commit

Permalink
fix: change initial type from bool to dict
Browse files Browse the repository at this point in the history
  • Loading branch information
alandtse committed Oct 22, 2019
1 parent 6a0e433 commit 98b238b
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions teslajsonpy/controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,11 +69,11 @@ def __init__(self, email, password, update_interval):
self._last_wake_up_time[car['id']] = 0
self.__update[car['id']] = True
self.car_online[car['id']] = (car['state'] == 'online')
self.__climate[car['id']] = False
self.__charging[car['id']] = False
self.__state[car['id']] = False
self.__driving[car['id']] = False
self.__gui[car['id']] = False
self.__climate[car['id']] = {}
self.__charging[car['id']] = {}
self.__state[car['id']] = {}
self.__driving[car['id']] = {}
self.__gui[car['id']] = {}

try:
self.update(car['id'], wake_if_asleep=True)
Expand Down

0 comments on commit 98b238b

Please sign in to comment.