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

6 statements  

« prev     ^ index     » next       coverage.py v7.13.5, created at 2026-04-03 16:41 +0000

1"""ElapsedTime 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 ElapsedTimeService(BaseGattService): 

12 """Elapsed Time Service implementation (0x183F). 

13 

14 Provides elapsed time tracking for BLE devices without a 

15 real-time clock. 

16 """ 

17 

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

19 CharacteristicName.ELAPSED_TIME: True, 

20 }