Coverage for src / bluetooth_sig / gatt / characteristics / gust_factor.py: 100%
5 statements
« prev ^ index » next coverage.py v7.13.1, created at 2026-01-11 20:14 +0000
« prev ^ index » next coverage.py v7.13.1, created at 2026-01-11 20:14 +0000
1"""Gust Factor characteristic implementation."""
3from __future__ import annotations
5from .base import BaseCharacteristic
6from .templates import ScaledUint8Template
9class GustFactorCharacteristic(BaseCharacteristic[float]):
10 """Gust Factor characteristic (0x2A74).
12 org.bluetooth.characteristic.gust_factor
14 Represents the gust factor with 0.1 resolution (value * 0.1).
15 """
17 _template = ScaledUint8Template.from_letter_method(M=1, d=-1, b=0) # 0.1 scaling