From af5d3fbaa905ab27245e9da7fc3514eec28c0e94 Mon Sep 17 00:00:00 2001 From: zbeacon Date: Fri, 15 May 2020 18:32:25 +0300 Subject: [PATCH] TB auto update checker added --- thingsboard_gateway/gateway/tb_updater.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/thingsboard_gateway/gateway/tb_updater.py b/thingsboard_gateway/gateway/tb_updater.py index 1da2a3b3..bcc7c2a2 100644 --- a/thingsboard_gateway/gateway/tb_updater.py +++ b/thingsboard_gateway/gateway/tb_updater.py @@ -29,9 +29,8 @@ UPDATE_SERVICE_BASE_URL = "https://updates.thingsboard.io" class TBUpdater(Thread): - def __init__(self, gateway, auto_updates_enabled): + def __init__(self, auto_updates_enabled): super().__init__() - self.__gateway = gateway self.__version = {"current_version": get_distribution('thingsboard_gateway').version, "latest_version": None} self.__instance_id = str(uuid1()) @@ -40,7 +39,6 @@ class TBUpdater(Thread): self.__previous_check = 0 self.__check_period = 3600.0 self.__request_timeout = 5 - self.__auto_update = auto_updates_enabled self.__stopped = True self.start()