diff options
Diffstat (limited to 'extras/Kuksa_Instance.py')
-rw-r--r-- | extras/Kuksa_Instance.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/extras/Kuksa_Instance.py b/extras/Kuksa_Instance.py index 1ff8056..cda539e 100644 --- a/extras/Kuksa_Instance.py +++ b/extras/Kuksa_Instance.py @@ -19,6 +19,7 @@ import kuksa_client as kuksa import threading import time + class KuksaClientSingleton: """ A singleton class that provides a single instance of KuksaClientThread. @@ -88,7 +89,7 @@ class KuksaClientSingleton: """ if self.client: self.client.stop() - + self.client = kuksa.KuksaClientThread(config) self.client.authorize(token) self.client.start() @@ -104,7 +105,7 @@ class KuksaClientSingleton: return self.client else: return None - + def get_config(self): """ Returns the configuration. @@ -128,4 +129,4 @@ class KuksaClientSingleton: Stops the client instance. """ if self.client: - self.client.stop()
\ No newline at end of file + self.client.stop() |