summaryrefslogtreecommitdiff
path: root/src/polaris_kettle_bot.py
diff options
context:
space:
mode:
authorEvgeny Zinoviev <me@ch1p.io>2022-07-02 15:28:29 +0300
committerEvgeny Zinoviev <me@ch1p.io>2022-07-02 15:28:29 +0300
commit4848650e3e3e750d0ddeedabfb1d3e23f88e6a6b (patch)
tree5701bad790433be09059ebe03659cd4b89ccb6cf /src/polaris_kettle_bot.py
parent02607d7eb3b9248ba82c19ee0f274f210a9df10b (diff)
polaris_kettle_bot: make READ_TIMEOUT configurable
Diffstat (limited to 'src/polaris_kettle_bot.py')
-rwxr-xr-xsrc/polaris_kettle_bot.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/polaris_kettle_bot.py b/src/polaris_kettle_bot.py
index 3ce9688..c031cb1 100755
--- a/src/polaris_kettle_bot.py
+++ b/src/polaris_kettle_bot.py
@@ -163,7 +163,8 @@ class KettleController(threading.Thread,
self._logger = logging.getLogger(self.__class__.__name__)
self.kettle = Kettle(mac=config['kettle']['mac'],
- device_token=config['kettle']['token'])
+ device_token=config['kettle']['token'],
+ read_timeout=config['kettle']['read_timeout'])
self.kettle_reconnect()
# info