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

7 statements  

« prev     ^ index     » next       coverage.py v7.13.5, created at 2026-03-18 11:17 +0000

1"""User Index characteristic implementation.""" 

2 

3from __future__ import annotations 

4 

5from ...types.gatt_enums import CharacteristicRole 

6from .base import BaseCharacteristic 

7from .templates import Uint8Template 

8 

9 

10class UserIndexCharacteristic(BaseCharacteristic[int]): 

11 """User Index characteristic (0x2A9A). 

12 

13 org.bluetooth.characteristic.user_index 

14 

15 Identifies a user by index as an unsigned 8-bit integer. 

16 """ 

17 

18 _manual_role = CharacteristicRole.INFO 

19 _template = Uint8Template()