Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
barbibulle committed Oct 29, 2023
1 parent 49d32f5 commit 9d2f3e9
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion examples/heart_rate_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ def on_subscription(connection, notify_enabled, indicate_enabled):
AsyncRunner.spawn(
device.notify_subscriber(
connection,
heart_rate_service.heart_rate_measurement_characteristic
heart_rate_service.heart_rate_measurement_characteristic,
)
)

Expand Down
2 changes: 1 addition & 1 deletion tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions web/scanner/scanner.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ def on_advertisement(self, advertisement):
self.scan_entries[advertisement.address] = self.ScanEntry(advertisement)
self.emit_update()


# -----------------------------------------------------------------------------
def main(hci_source, hci_sink):
return Scanner(hci_source, hci_sink)
4 changes: 1 addition & 3 deletions web/speaker/speaker.py
Original file line number Diff line number Diff line change
Expand Up @@ -172,9 +172,7 @@ def on_bluetooth_connection(self, connection):
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})')
Expand Down

0 comments on commit 9d2f3e9

Please sign in to comment.