Coverage for src / bluetooth_sig / gatt / characteristics / weight.py: 100%
5 statements
« prev ^ index » next coverage.py v7.13.1, created at 2026-01-11 20:14 +0000
« prev ^ index » next coverage.py v7.13.1, created at 2026-01-11 20:14 +0000
1"""Weight characteristic (0x2A98)."""
3from __future__ import annotations
5from .base import BaseCharacteristic
6from .templates import ScaledUint16Template
9class WeightCharacteristic(BaseCharacteristic[float]):
10 """Weight characteristic (0x2A98).
12 org.bluetooth.characteristic.weight
14 Weight characteristic.
15 """
17 _template = ScaledUint16Template(scale_factor=0.005) # 5g resolution
19 # Validation attributes