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
« prev ^ index » next coverage.py v7.13.1, created at 2026-01-11 20:14 +0000
1"""Reference Time Update Service implementation."""
3from __future__ import annotations
5from typing import ClassVar
7from ..characteristics.registry import CharacteristicName
8from .base import BaseGattService
11class ReferenceTimeUpdateService(BaseGattService):
12 """Reference Time Update Service implementation.
14 Allows clients to request time updates from reference time sources.
16 Contains characteristics related to time updates:
17 - Time Update Control Point - Required
18 - Time Update State - Optional
19 """
21 service_characteristics: ClassVar[dict[CharacteristicName, bool]] = {
22 CharacteristicName.TIME_UPDATE_CONTROL_POINT: True, # required
23 CharacteristicName.TIME_UPDATE_STATE: False, # optional
24 }