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
« prev ^ index » next coverage.py v7.13.5, created at 2026-03-18 11:17 +0000
1"""Light Distribution characteristic (0x2BE3)."""
3from __future__ import annotations
5from enum import IntEnum
7from .base import BaseCharacteristic
8from .templates import EnumTemplate
11class LightDistributionType(IntEnum):
12 """Light distribution type values.
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 """
23 NOT_SPECIFIED = 0x00
24 TYPE_I = 0x01
25 TYPE_II = 0x02
26 TYPE_III = 0x03
27 TYPE_IV = 0x04
28 TYPE_V = 0x05
31class LightDistributionCharacteristic(BaseCharacteristic[LightDistributionType]):
32 """Light Distribution characteristic (0x2BE3).
34 org.bluetooth.characteristic.light_distribution
36 Type of light distribution pattern.
37 """
39 _template = EnumTemplate.uint8(LightDistributionType)