diff --git a/examples/heart_rate_server.py b/examples/heart_rate_server.py index c4f3dfe..fad809f 100644 --- a/examples/heart_rate_server.py +++ b/examples/heart_rate_server.py @@ -106,7 +106,7 @@ async def main(): AsyncRunner.spawn( device.notify_subscriber( connection, - heart_rate_service.heart_rate_measurement_characteristic + heart_rate_service.heart_rate_measurement_characteristic, ) ) diff --git a/tasks.py b/tasks.py index 6df5a8b..fab7cf1 100644 --- a/tasks.py +++ b/tasks.py @@ -125,7 +125,7 @@ def lint(ctx, disable='C,R', errors_only=False): print(f">>> Running the linter{qualifier}...") try: ctx.run(f"pylint {' '.join(options)} bumble apps examples tasks.py") - print("The linter is happy. ✅ 😊 🐝'") + print("The linter is happy. ✅ 😊 🐝") except UnexpectedExit as exc: print("Please check your code against the linter messages. ❌") raise Exit(code=1) from exc diff --git a/web/scanner/scanner.py b/web/scanner/scanner.py index e498f7a..9ff6aba 100644 --- a/web/scanner/scanner.py +++ b/web/scanner/scanner.py @@ -67,6 +67,7 @@ class Scanner: self.scan_entries[advertisement.address] = self.ScanEntry(advertisement) self.emit_update() + # ----------------------------------------------------------------------------- def main(hci_source, hci_sink): return Scanner(hci_source, hci_sink) diff --git a/web/speaker/speaker.py b/web/speaker/speaker.py index 4157981..2b8ce00 100644 --- a/web/speaker/speaker.py +++ b/web/speaker/speaker.py @@ -172,9 +172,7 @@ class Speaker: connection.on('disconnection', self.on_bluetooth_disconnection) peer_name = '' if connection.peer_name is None else connection.peer_name peer_address = connection.peer_address.to_string(False) - self.emit( - 'connection', {'peer_name': peer_name, 'peer_address': peer_address} - ) + self.emit('connection', {'peer_name': peer_name, 'peer_address': peer_address}) def on_bluetooth_disconnection(self, reason): print(f'Disconnection ({reason})')