Coverage for src/bluetooth_sig/gatt/characteristics/average_current.py: 100%
8 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"""Average Current characteristic implementation."""
3from __future__ import annotations
5from ...types.units import ElectricalUnit
6from .base import BaseCharacteristic
7from .templates import ScaledUint16Template
10class AverageCurrentCharacteristic(BaseCharacteristic):
11 """Average Current characteristic (0x2AE0).
13 org.bluetooth.characteristic.average_current
15 Average Current characteristic.
17 Measures average electric current with 0.01 A resolution.
18 """
20 _template = ScaledUint16Template.from_letter_method(M=1, d=-2, b=0)
22 _manual_unit: str = ElectricalUnit.AMPS.value # Override template's "units" default
23 resolution: float = 0.01