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