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

7 statements  

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

1# pylint: disable=duplicate-code # Concentration characteristics share template configuration 

2"""Ozone Concentration characteristic implementation.""" 

3 

4from __future__ import annotations 

5 

6from .base import BaseCharacteristic 

7from .templates import ConcentrationTemplate 

8 

9 

10class OzoneConcentrationCharacteristic(BaseCharacteristic[float]): 

11 """Ozone concentration measurement characteristic (0x2BD4). 

12 

13 Represents ozone concentration in parts per billion (ppb) with a 

14 resolution of 1 ppb. 

15 """ 

16 

17 _template = ConcentrationTemplate() 

18 

19 _manual_unit: str = "ppb" # Override template's "ppm" default 

20 

21 # Template configuration 

22 resolution: float = 1.0