Coverage for src / bluetooth_sig / gatt / services / binary_sensor.py: 100%
6 statements
« prev ^ index » next coverage.py v7.13.5, created at 2026-04-03 16:41 +0000
« prev ^ index » next coverage.py v7.13.5, created at 2026-04-03 16:41 +0000
1"""BinarySensor Service implementation."""
3from __future__ import annotations
5from typing import ClassVar
7from ..characteristics.registry import CharacteristicName
8from .base import BaseGattService
11class BinarySensorService(BaseGattService):
12 """Binary Sensor Service implementation (0x183B).
14 Enables devices with one or more binary (open/closed, on/off)
15 sensors to report sensor state to a client device. Commands are
16 received on the BSS Control Point and responses/events are
17 indicated on the BSS Response characteristic.
18 """
20 service_characteristics: ClassVar[dict[CharacteristicName, bool]] = {
21 CharacteristicName.BSS_CONTROL_POINT: True,
22 CharacteristicName.BSS_RESPONSE: True,
23 }