Coverage for src / bluetooth_sig / gatt / characteristics / central_address_resolution.py: 100%

10 statements  

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

1"""Central Address Resolution characteristic.""" 

2 

3from __future__ import annotations 

4 

5from enum import IntEnum 

6 

7from .base import BaseCharacteristic 

8from .templates import EnumTemplate 

9 

10 

11class CentralAddressResolutionSupport(IntEnum): 

12 """Central Address Resolution support status.""" 

13 

14 NOT_SUPPORTED = 0 

15 SUPPORTED = 1 

16 

17 

18class CentralAddressResolutionCharacteristic(BaseCharacteristic[CentralAddressResolutionSupport]): 

19 """Central Address Resolution characteristic (0x2AA6). 

20 

21 org.bluetooth.characteristic.central_address_resolution 

22 

23 Indicates whether the Central Address Resolution is supported (1) or not (0). 

24 """ 

25 

26 expected_length: int = 1 

27 _template = EnumTemplate.uint8(CentralAddressResolutionSupport)