Coverage for src / bluetooth_sig / gatt / services / reference_time_update.py: 100%

6 statements  

« prev     ^ index     » next       coverage.py v7.13.1, created at 2026-01-11 20:14 +0000

1"""Reference Time Update Service implementation.""" 

2 

3from __future__ import annotations 

4 

5from typing import ClassVar 

6 

7from ..characteristics.registry import CharacteristicName 

8from .base import BaseGattService 

9 

10 

11class ReferenceTimeUpdateService(BaseGattService): 

12 """Reference Time Update Service implementation. 

13 

14 Allows clients to request time updates from reference time sources. 

15 

16 Contains characteristics related to time updates: 

17 - Time Update Control Point - Required 

18 - Time Update State - Optional 

19 """ 

20 

21 service_characteristics: ClassVar[dict[CharacteristicName, bool]] = { 

22 CharacteristicName.TIME_UPDATE_CONTROL_POINT: True, # required 

23 CharacteristicName.TIME_UPDATE_STATE: False, # optional 

24 }