From 552deab8a79c6834163e236f2a84dd511c666004 Mon Sep 17 00:00:00 2001 From: Lucas Abel <22837557+uael@users.noreply.github.com> Date: Mon, 27 Mar 2023 11:53:34 -0700 Subject: [PATCH] Add `Connection` type Co-authored-by: Alan Rosenthal <1288897+AlanRosenthal@users.noreply.github.com> --- bumble/profiles/asha_service.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bumble/profiles/asha_service.py b/bumble/profiles/asha_service.py index 60278fc7..139d304c 100644 --- a/bumble/profiles/asha_service.py +++ b/bumble/profiles/asha_service.py @@ -65,7 +65,7 @@ class AshaService(TemplateService): self.emit('volume', connection, value[0]) # Handler for audio control commands - def on_audio_control_point_write(connection, value): + def on_audio_control_point_write(connection: Connection, value): logger.info(f'--- AUDIO CONTROL POINT Write:{value.hex()}') opcode = value[0] if opcode == AshaService.OPCODE_START: