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

6 statements  

« prev     ^ index     » next       coverage.py v7.13.5, created at 2026-03-18 11:17 +0000

1"""Time Second 8 characteristic (0x2B16).""" 

2 

3from __future__ import annotations 

4 

5from datetime import timedelta 

6 

7from .base import BaseCharacteristic 

8from .templates import TimeDurationTemplate 

9 

10 

11class TimeSecond8Characteristic(BaseCharacteristic[timedelta]): 

12 """Time Second 8 characteristic (0x2B16). 

13 

14 org.bluetooth.characteristic.time_second_8 

15 

16 Time in seconds with a resolution of 1 (0-254). 

17 A value of 0xFF represents 'value is not known'. 

18 

19 Raises: 

20 SpecialValueDetectedError: If raw value is a sentinel (e.g. 0xFF). 

21 """ 

22 

23 _template = TimeDurationTemplate.seconds_uint8()