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

6 statements  

« prev     ^ index     » next       coverage.py v7.11.0, created at 2025-10-30 00:10 +0000

1"""Pressure characteristic implementation.""" 

2 

3from __future__ import annotations 

4 

5from .base import BaseCharacteristic 

6from .templates import PressureTemplate 

7 

8 

9class PressureCharacteristic(BaseCharacteristic): 

10 """Pressure characteristic (0x2A6D). 

11 

12 org.bluetooth.characteristic.pressure 

13 

14 Atmospheric pressure characteristic. 

15 """ 

16 

17 _template = PressureTemplate() 

18 

19 # Override template validation for realistic atmospheric pressure range 

20 max_value: float = 200000.0 # 0 to 2000 hPa (200000 Pa)