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

6 statements  

« prev     ^ index     » next       coverage.py v7.14.3, created at 2026-06-28 01:26 +0000

1"""Next DST Change 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 NextDstChangeService(BaseGattService): 

12 """Next DST Change Service implementation. 

13 

14 Exposes the date and time of the next Daylight Saving Time change. 

15 

16 Contains characteristics related to DST changes: 

17 - Time with DST - Required 

18 """ 

19 

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

21 CharacteristicName.TIME_WITH_DST: True, 

22 }