Coverage for src / bluetooth_sig / gatt / characteristics / light_source_type.py: 100%
17 statements
« prev ^ index » next coverage.py v7.13.5, created at 2026-04-03 16:41 +0000
« prev ^ index » next coverage.py v7.13.5, created at 2026-04-03 16:41 +0000
1"""Light Source Type characteristic (0x2BE3)."""
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 OLED: Organic light emitting diode (0x06)
22 OTHER: Other than listed above (0xFD)
23 NO_LIGHT_SOURCE: No light source (0xFE)
24 MULTIPLE: Multiple light source types (0xFF)
25 """
27 NOT_SPECIFIED = 0x00
28 LOW_PRESSURE_FLUORESCENT = 0x01
29 HID = 0x02
30 LOW_VOLTAGE_HALOGEN = 0x03
31 INCANDESCENT = 0x04
32 LED = 0x05
33 OLED = 0x06
34 OTHER = 0xFD
35 NO_LIGHT_SOURCE = 0xFE
36 MULTIPLE = 0xFF
39class LightSourceTypeCharacteristic(BaseCharacteristic[LightSourceTypeValue]):
40 """Light Source Type characteristic (0x2BE3).
42 org.bluetooth.characteristic.light_source_type
44 Type of light source (LED, fluorescent, incandescent, etc.).
45 """
47 _template = EnumTemplate.uint8(LightSourceTypeValue)