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

6 statements  

« prev     ^ index     » next       coverage.py v7.13.1, created at 2026-01-11 20:14 +0000

1"""Bond Management 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 BondManagementService(BaseGattService): 

12 """Bond Management Service implementation. 

13 

14 Contains characteristics for managing Bluetooth bonds: 

15 - Bond Management Feature - Required 

16 - Bond Management Control Point - Required 

17 """ 

18 

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

20 CharacteristicName.BOND_MANAGEMENT_FEATURE: True, # required 

21 CharacteristicName.BOND_MANAGEMENT_CONTROL_POINT: True, # required 

22 }