Small but essential fix...

This commit is contained in:
NaitLee 2022-05-05 08:19:17 +08:00
parent da921d8e9a
commit b5ad2328e1
2 changed files with 3 additions and 3 deletions

View File

@ -365,9 +365,9 @@ class PrinterDriver(Commander):
identifier[2::3] != ':::::' and len(identifier.replace('-', '')) != 32):
error('model-0-is-not-supported-yet', identifier, exception=PrinterError)
# scanner = BleakScanner()
devices = self.loop(
devices = [x for x in self.loop(
BleakScanner.discover(self.scan_timeout)
)
) if x.name in Models]
if identifier is not None:
if identifier in Models:
devices = [dev for dev in devices if dev.name == identifier]

View File

@ -1 +1 @@
0.4.1
0.4.2