Improved logging mechanism (and a few minor goodies) (#54)

* Improved logging mechanism

* Allow for suppression of any errors regarding failed device updates
This commit is contained in:
Dennis Keitzel
2019-03-03 19:46:38 +01:00
committed by zewelor
parent c6a068f811
commit c9a634870f
14 changed files with 200 additions and 69 deletions
+1 -1
View File
@@ -15,7 +15,7 @@ class LinakdeskWorker(BaseWorker):
return [MqttMessage(topic=self.format_topic('height/cm'), payload=self._get_height())]
def _get_height(self):
with timeout(20):
with timeout(20, exception=TimeoutError):
self.desk.read_dpg_data()
return self.desk.current_height_with_offset.cm