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

6 statements  

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

1"""Link Loss 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 LinkLossService(BaseGattService): 

12 """Link Loss Service implementation. 

13 

14 Defines behaviour when a link is lost between two devices. 

15 

16 Contains characteristics related to link loss alerts: 

17 - Alert Level - Required 

18 """ 

19 

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

21 CharacteristicName.ALERT_LEVEL: True, # required 

22 }