Coverage for src/bluetooth_sig/gatt/characteristics/track_duration.py: 100%

5 statements  

« prev     ^ index     » next       coverage.py v7.14.3, created at 2026-06-28 01:26 +0000

1"""Track Duration characteristic (0x2B98).""" 

2 

3from __future__ import annotations 

4 

5from .base import BaseCharacteristic 

6from .templates import Sint32Template 

7 

8 

9class TrackDurationCharacteristic(BaseCharacteristic[int]): 

10 """Track Duration characteristic (0x2B98). 

11 

12 org.bluetooth.characteristic.track_duration 

13 

14 Duration of the current track in hundredths of a second. 

15 A value of -1 indicates the duration is unknown. 

16 """ 

17 

18 _template = Sint32Template()