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

6 statements  

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

1"""Immediate Alert 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 ImmediateAlertService(BaseGattService): 

12 """Immediate Alert Service implementation. 

13 

14 Exposes a control point to allow a peer device to cause the device to 

15 immediately alert. 

16 

17 Contains characteristics related to immediate alerts: 

18 - Alert Level - Required 

19 """ 

20 

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

22 CharacteristicName.ALERT_LEVEL: True, # required 

23 }