Coverage for src / bluetooth_sig / gatt / characteristics / floor_number.py: 100%
8 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"""Floor Number characteristic implementation."""
3from __future__ import annotations
5from .base import BaseCharacteristic
6from .templates import Sint8Template
9class FloorNumberCharacteristic(BaseCharacteristic[int]):
10 """Floor Number characteristic (0x2AB2).
12 org.bluetooth.characteristic.floor_number
14 Floor Number characteristic.
15 """
17 # SIG spec: sint8 floor index → fixed 1-byte payload; no GSS YAML
18 expected_length = 1
19 min_length = 1
20 max_length = 1
21 _template = Sint8Template()