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

8 statements  

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

1"""Health Sensor Features characteristic (0x2BF3).""" 

2 

3from __future__ import annotations 

4 

5from enum import IntFlag 

6 

7from .base import BaseCharacteristic 

8from .templates import FlagTemplate 

9 

10 

11class HealthSensorFeatures(IntFlag): 

12 """Health Sensor feature flags.""" 

13 

14 OBSERVATION_TYPE_SUPPORTED = 0x0001 

15 

16 

17class HealthSensorFeaturesCharacteristic(BaseCharacteristic[HealthSensorFeatures]): 

18 """Health Sensor Features characteristic (0x2BF3). 

19 

20 org.bluetooth.characteristic.health_sensor_features 

21 

22 Bitfield indicating the supported Health Sensor features. 

23 """ 

24 

25 _template = FlagTemplate.uint32(HealthSensorFeatures)