Coverage for src / bluetooth_sig / gatt / characteristics / generic_level.py: 100%
7 statements
« prev ^ index » next coverage.py v7.13.5, created at 2026-03-18 11:17 +0000
« prev ^ index » next coverage.py v7.13.5, created at 2026-03-18 11:17 +0000
1"""Generic Level characteristic (0x2AF9)."""
3from __future__ import annotations
5from ...types.gatt_enums import CharacteristicRole
6from .base import BaseCharacteristic
7from .templates import Uint16Template
10class GenericLevelCharacteristic(BaseCharacteristic[int]):
11 """Generic Level characteristic (0x2AF9).
13 org.bluetooth.characteristic.generic_level
15 Unitless 16-bit level value (0-65535).
16 """
18 _manual_role = CharacteristicRole.MEASUREMENT
19 _template = Uint16Template()