Add Connection type

Co-authored-by: Alan Rosenthal <1288897+AlanRosenthal@users.noreply.github.com>
This commit is contained in:
Lucas Abel
2023-03-27 11:53:34 -07:00
committed by GitHub
parent 51ae6a5969
commit 552deab8a7

View File

@@ -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: