Coverage for src / bluetooth_sig / gatt / services / volume_control.py: 100%

6 statements  

« prev     ^ index     » next       coverage.py v7.13.5, created at 2026-04-03 16:41 +0000

1"""VolumeControl Service implementation.""" 

2 

3from __future__ import annotations 

4 

5from typing import ClassVar 

6 

7from ..characteristics.registry import CharacteristicName 

8from .base import BaseGattService 

9 

10 

11class VolumeControlService(BaseGattService): 

12 """Volume Control Service implementation (0x1844). 

13 

14 Controls audio volume and mute state for LE Audio devices. 

15 """ 

16 

17 service_characteristics: ClassVar[dict[CharacteristicName, bool]] = { 

18 CharacteristicName.VOLUME_STATE: True, 

19 CharacteristicName.VOLUME_CONTROL_POINT: True, 

20 CharacteristicName.VOLUME_FLAGS: True, 

21 }