fix some linter warnings

This commit is contained in:
Gilles Boccon-Gibod
2024-10-21 23:58:50 -07:00
parent f169ceaebb
commit a00abd65b3
8 changed files with 14 additions and 0 deletions

View File

@@ -57,6 +57,9 @@ def on_dlc(dlc: rfcomm.DLC, configuration: hfp.HfConfiguration):
esco_parameters = hfp.ESCO_PARAMETERS[
hfp.DefaultCodecParameters.ESCO_CVSD_S4
]
else:
raise RuntimeError("unknown active codec")
connection.abort_on(
'disconnection',
connection.device.send_command(