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

5 statements  

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

1"""Chromaticity Tolerance characteristic (0x2AE6).""" 

2 

3from __future__ import annotations 

4 

5from .base import BaseCharacteristic 

6from .templates import ScaledUint8Template 

7 

8 

9class ChromaticityToleranceCharacteristic(BaseCharacteristic[float]): 

10 """Chromaticity Tolerance characteristic (0x2AE6). 

11 

12 org.bluetooth.characteristic.chromaticity_tolerance 

13 

14 Unitless chromaticity tolerance value. 

15 M=1, d=-4, b=0 -> resolution 0.0001 (0-0.0255). 

16 """ 

17 

18 _template = ScaledUint8Template.from_letter_method(M=1, d=-4, b=0)