Coverage for src / bluetooth_sig / gatt / characteristics / volume_flow.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"""Volume Flow characteristic (0x2B22)."""
3from __future__ import annotations
5from .base import BaseCharacteristic
6from .templates import ScaledUint16Template
9class VolumeFlowCharacteristic(BaseCharacteristic[float]):
10 """Volume Flow characteristic (0x2B22).
12 org.bluetooth.characteristic.volume_flow
14 Volume flow in litres per second with a resolution of 0.001 (1 mL).
15 M=1, d=-3, b=0 → scale factor 0.001.
16 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=-3, b=0)