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
« prev ^ index » next coverage.py v7.13.1, created at 2026-01-11 20:14 +0000
1"""Link Loss Service implementation."""
3from __future__ import annotations
5from typing import ClassVar
7from ..characteristics.registry import CharacteristicName
8from .base import BaseGattService
11class LinkLossService(BaseGattService):
12 """Link Loss Service implementation.
14 Defines behaviour when a link is lost between two devices.
16 Contains characteristics related to link loss alerts:
17 - Alert Level - Required
18 """
20 service_characteristics: ClassVar[dict[CharacteristicName, bool]] = {
21 CharacteristicName.ALERT_LEVEL: True, # required
22 }