Coverage for src / bluetooth_sig / gatt / characteristics / light_source_type.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 Source Type characteristic (0x2BE4)."""
3from __future__ import annotations
5from enum import IntEnum
7from .base import BaseCharacteristic
8from .templates import EnumTemplate
11class LightSourceTypeValue(IntEnum):
12 """Light source type values.
14 Values:
15 NOT_SPECIFIED: Type not specified (0x00)
16 LOW_PRESSURE_FLUORESCENT: Low pressure fluorescent (0x01)
17 HID: High intensity discharge (0x02)
18 LOW_VOLTAGE_HALOGEN: Low voltage halogen (0x03)
19 INCANDESCENT: Incandescent (0x04)
20 LED: Light emitting diode (0x05)
21 """
23 NOT_SPECIFIED = 0x00
24 LOW_PRESSURE_FLUORESCENT = 0x01
25 HID = 0x02
26 LOW_VOLTAGE_HALOGEN = 0x03
27 INCANDESCENT = 0x04
28 LED = 0x05
31class LightSourceTypeCharacteristic(BaseCharacteristic[LightSourceTypeValue]):
32 """Light Source Type characteristic (0x2BE4).
34 org.bluetooth.characteristic.light_source_type
36 Type of light source (LED, fluorescent, incandescent, etc.).
37 """
39 _template = EnumTemplate.uint8(LightSourceTypeValue)