Coverage for src/bluetooth_sig/gatt/characteristics/energy.py: 100%
5 statements
« prev ^ index » next coverage.py v7.14.3, created at 2026-06-28 01:26 +0000
« prev ^ index » next coverage.py v7.14.3, created at 2026-06-28 01:26 +0000
1"""Energy characteristic (0x2AF1)."""
3from __future__ import annotations
5from .base import BaseCharacteristic
6from .templates import Uint24Template
9class EnergyCharacteristic(BaseCharacteristic[int]):
10 """Energy characteristic (0x2AF1).
12 org.bluetooth.characteristic.energy
14 Energy in kilowatt-hours with a resolution of 1.
15 A value of 0xFFFFFF represents 'value is not known'.
17 Raises:
18 SpecialValueDetectedError: If raw value is a sentinel (e.g. 0xFFFFFF).
19 """
21 _template = Uint24Template()