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

13 statements  

« prev     ^ index     » next       coverage.py v7.13.5, created at 2026-03-18 11:17 +0000

1"""Light Distribution characteristic (0x2BE3).""" 

2 

3from __future__ import annotations 

4 

5from enum import IntEnum 

6 

7from .base import BaseCharacteristic 

8from .templates import EnumTemplate 

9 

10 

11class LightDistributionType(IntEnum): 

12 """Light distribution type values. 

13 

14 Values: 

15 NOT_SPECIFIED: Type not specified (0x00) 

16 TYPE_I: Type I distribution (0x01) 

17 TYPE_II: Type II distribution (0x02) 

18 TYPE_III: Type III distribution (0x03) 

19 TYPE_IV: Type IV distribution (0x04) 

20 TYPE_V: Type V distribution (0x05) 

21 """ 

22 

23 NOT_SPECIFIED = 0x00 

24 TYPE_I = 0x01 

25 TYPE_II = 0x02 

26 TYPE_III = 0x03 

27 TYPE_IV = 0x04 

28 TYPE_V = 0x05 

29 

30 

31class LightDistributionCharacteristic(BaseCharacteristic[LightDistributionType]): 

32 """Light Distribution characteristic (0x2BE3). 

33 

34 org.bluetooth.characteristic.light_distribution 

35 

36 Type of light distribution pattern. 

37 """ 

38 

39 _template = EnumTemplate.uint8(LightDistributionType)