Make command timeout for workers configurable (#62)

This commit is contained in:
Dennis Keitzel
2019-03-10 09:51:50 +01:00
committed by zewelor
parent bc681fd85f
commit a655504f78
7 changed files with 37 additions and 23 deletions
+2 -2
View File
@@ -84,8 +84,8 @@ class BlescanmultiWorker(BaseWorker):
scan_timeout = 10. # type: float
scan_passive = True # type: str or bool
def __init__(self, **kwargs):
super(BlescanmultiWorker, self).__init__(**kwargs)
def __init__(self, command_timeout, **kwargs):
super(BlescanmultiWorker, self).__init__(command_timeout, **kwargs)
self.scanner = Scanner().withDelegate(ScanDelegate())
self.last_status = [
BleDeviceStatus(self, mac, name) for name, mac in self.devices.items()