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

1"""Tx Power 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 TxPowerService(BaseGattService): 

12 """Tx Power Service implementation. 

13 

14 Exposes the current transmit power level of a device. 

15 

16 Contains characteristics related to transmit power: 

17 - Tx Power Level - Required 

18 """ 

19 

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

21 CharacteristicName.TX_POWER_LEVEL: True, # required 

22 }