Coverage for src/bluetooth_sig/gatt/characteristics/device_name.py: 100%

5 statements  

« prev     ^ index     » next       coverage.py v7.14.3, created at 2026-06-28 01:26 +0000

1"""Device Name characteristic implementation.""" 

2 

3from __future__ import annotations 

4 

5from .base import BaseCharacteristic 

6from .templates import Utf8StringTemplate 

7 

8 

9class DeviceNameCharacteristic(BaseCharacteristic[str]): 

10 """Device Name characteristic (0x2A00). 

11 

12 org.bluetooth.characteristic.gap.device_name 

13 

14 Represents the device name as a UTF-8 string. 

15 """ 

16 

17 _template = Utf8StringTemplate()