From 98b238b68a2f5a1ae199fa8eb64035f402293032 Mon Sep 17 00:00:00 2001 From: "Alan D. Tse" Date: Tue, 22 Oct 2019 00:42:51 -0700 Subject: [PATCH] fix: change initial type from bool to dict --- teslajsonpy/controller.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/teslajsonpy/controller.py b/teslajsonpy/controller.py index 1a34af6d..a81646c7 100644 --- a/teslajsonpy/controller.py +++ b/teslajsonpy/controller.py @@ -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)