Coverage for src / bluetooth_sig / gatt / services / tx_power.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"""Tx Power Service implementation."""
3from __future__ import annotations
5from typing import ClassVar
7from ..characteristics.registry import CharacteristicName
8from .base import BaseGattService
11class TxPowerService(BaseGattService):
12 """Tx Power Service implementation.
14 Exposes the current transmit power level of a device.
16 Contains characteristics related to transmit power:
17 - Tx Power Level - Required
18 """
20 service_characteristics: ClassVar[dict[CharacteristicName, bool]] = {
21 CharacteristicName.TX_POWER_LEVEL: True, # required
22 }