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
« prev ^ index » next coverage.py v7.11.0, created at 2025-10-30 00:10 +0000
1"""Pressure characteristic implementation."""
3from __future__ import annotations
5from .base import BaseCharacteristic
6from .templates import PressureTemplate
9class PressureCharacteristic(BaseCharacteristic):
10 """Pressure characteristic (0x2A6D).
12 org.bluetooth.characteristic.pressure
14 Atmospheric pressure characteristic.
15 """
17 _template = PressureTemplate()
19 # Override template validation for realistic atmospheric pressure range
20 max_value: float = 200000.0 # 0 to 2000 hPa (200000 Pa)