Coverage for src/bluetooth_sig/gatt/services/phone_alert_status.py: 100%
7 statements
« prev ^ index » next coverage.py v7.11.0, created at 2025-10-30 00:10 +0000
« prev ^ index » next coverage.py v7.11.0, created at 2025-10-30 00:10 +0000
1"""Phone Alert Status Service implementation."""
3from __future__ import annotations
5from typing import ClassVar
7from ..characteristics.registry import CharacteristicName
8from .base import BaseGattService
11class PhoneAlertStatusService(BaseGattService):
12 """Phone Alert Status Service implementation.
14 Contains characteristics related to phone alert status:
15 - Alert Status - Required
16 - Ringer Setting - Required
17 - Ringer Control Point - Optional
18 """
20 _service_name: str = "Phone Alert Status"
22 service_characteristics: ClassVar[dict[CharacteristicName, bool]] = {
23 CharacteristicName.ALERT_STATUS: True,
24 CharacteristicName.RINGER_SETTING: True,
25 CharacteristicName.RINGER_CONTROL_POINT: False,
26 }