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

1"""Floor Number characteristic implementation.""" 

2 

3from __future__ import annotations 

4 

5from .base import BaseCharacteristic 

6from .templates import Sint8Template 

7 

8 

9class FloorNumberCharacteristic(BaseCharacteristic[int]): 

10 """Floor Number characteristic (0x2AB2). 

11 

12 org.bluetooth.characteristic.floor_number 

13 

14 Floor Number characteristic. 

15 """ 

16 

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()