Coverage for src / bluetooth_sig / gatt / characteristics / luminous_energy.py: 100%
5 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"""Luminous Energy characteristic (0x2BF2)."""
3from __future__ import annotations
5from .base import BaseCharacteristic
6from .templates import Uint24Template
9class LuminousEnergyCharacteristic(BaseCharacteristic[int]):
10 """Luminous Energy characteristic (0x2BF2).
12 org.bluetooth.characteristic.luminous_energy
14 Luminous energy in lumen hours with a resolution of 1000.
15 A value of 0xFFFFFE represents 'value is not valid'.
17 Raises:
18 SpecialValueDetectedError: If raw value is a sentinel (e.g. 0xFFFFFE).
19 """
21 _template = Uint24Template()