Coverage for src / bluetooth_sig / gatt / characteristics / time_hour_24.py: 100%
6 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"""Time Hour 24 characteristic (0x2B14)."""
3from __future__ import annotations
5from datetime import timedelta
7from .base import BaseCharacteristic
8from .templates import TimeDurationTemplate
11class TimeHour24Characteristic(BaseCharacteristic[timedelta]):
12 """Time Hour 24 characteristic (0x2B14).
14 org.bluetooth.characteristic.time_hour_24
16 Time in hours with a resolution of 1.
17 A value of 0xFFFFFF represents 'value is not known'.
19 Raises:
20 SpecialValueDetectedError: If raw value is a sentinel (e.g. 0xFFFFFF).
21 """
23 _template = TimeDurationTemplate.hours_uint24()