Coverage for src / bluetooth_sig / gatt / characteristics / luminous_efficacy.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 Efficacy characteristic (0x2BF6)."""
3from __future__ import annotations
5from .base import BaseCharacteristic
6from .templates import ScaledUint16Template
9class LuminousEfficacyCharacteristic(BaseCharacteristic[float]):
10 """Luminous Efficacy characteristic (0x2BF6).
12 org.bluetooth.characteristic.luminous_efficacy
14 Luminous efficacy in lumens per watt with a resolution of 0.1.
15 M=1, d=-1, b=0 → scale factor 0.1.
16 Range: 0-1800. A value of 0xFFFF represents 'value is not known'.
18 Raises:
19 SpecialValueDetectedError: If raw value is a sentinel (e.g. 0xFFFF).
20 """
22 _template = ScaledUint16Template.from_letter_method(M=1, d=-1, b=0)