Coverage for src / bluetooth_sig / gatt / services / heart_rate.py: 100%
6 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"""Heart Rate Service implementation."""
3from __future__ import annotations
5from typing import ClassVar
7from ..characteristics.registry import CharacteristicName
8from .base import BaseGattService
11class HeartRateService(BaseGattService):
12 """Heart Rate Service implementation (0x180D).
14 Used for heart rate monitoring devices. Contains the Heart Rate
15 Measurement characteristic for heart rate data with optional RR-
16 intervals and energy expenditure.
17 """
19 service_characteristics: ClassVar[dict[CharacteristicName, bool]] = {
20 CharacteristicName.HEART_RATE_MEASUREMENT: True, # required
21 }