Coverage for src/bluetooth_sig/gatt/services/cycling_power.py: 100%
6 statements
« prev ^ index » next coverage.py v7.14.3, created at 2026-06-28 01:26 +0000
« prev ^ index » next coverage.py v7.14.3, created at 2026-06-28 01:26 +0000
1"""Cycling Power Service implementation."""
3from __future__ import annotations
5from typing import ClassVar
7from ..characteristics.registry import CharacteristicName
8from .base import BaseGattService
11class CyclingPowerService(BaseGattService):
12 """Cycling Power Service implementation (0x1818).
14 Used for cycling power meters that measure power output in watts.
15 Supports instantaneous power, force/torque vectors, and control
16 functions.
17 """
19 service_characteristics: ClassVar[dict[CharacteristicName, bool]] = {
20 CharacteristicName.CYCLING_POWER_MEASUREMENT: True,
21 CharacteristicName.CYCLING_POWER_FEATURE: True,
22 CharacteristicName.CYCLING_POWER_VECTOR: False,
23 CharacteristicName.CYCLING_POWER_CONTROL_POINT: False,
24 CharacteristicName.SENSOR_LOCATION: True,
25 }