Coverage for src / bluetooth_sig / gatt / characteristics / local_east_coordinate.py: 100%
9 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"""Local East Coordinate characteristic implementation."""
3from __future__ import annotations
5from .base import BaseCharacteristic
6from .templates import ScaledSint24Template
9class LocalEastCoordinateCharacteristic(BaseCharacteristic[float]):
10 """Local East Coordinate characteristic (0x2AB1).
12 org.bluetooth.characteristic.local_east_coordinate
14 Local East Coordinate characteristic.
15 """
17 # Manual overrides required as Bluetooth SIG registry doesn't provide unit/value type
18 _manual_unit = "m"
19 # SIG spec: sint24 with 0.1 m resolution → fixed 3-byte payload; no GSS YAML
20 expected_length = 3
21 min_length = 3
22 max_length = 3
23 _template = ScaledSint24Template(scale_factor=0.1)