Coverage for src/bluetooth_sig/gatt/services/automation_io.py: 100%
7 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"""Automation IO Service implementation."""
3from __future__ import annotations
5from typing import ClassVar
7from ..characteristics.registry import CharacteristicName
8from .base import BaseGattService
11class AutomationIOService(BaseGattService):
12 """Automation IO Service implementation.
14 Contains characteristics related to electrical power monitoring and automation:
15 - Electric Current - Optional
16 - Voltage - Optional
17 - Average Current - Optional
18 - Average Voltage - Optional
19 - Electric Current Range - Optional
20 - Electric Current Specification - Optional
21 - Electric Current Statistics - Optional
22 - Voltage Specification - Optional
23 - Voltage Statistics - Optional
24 - High Voltage - Optional
25 - Voltage Frequency - Optional
26 - Supported Power Range - Optional
27 - Tx Power Level - Optional
28 """
30 _service_name: str = "Automation IO"
32 # Will be populated as we implement each characteristic
33 service_characteristics: ClassVar[dict[CharacteristicName, bool]] = {
34 CharacteristicName.ELECTRIC_CURRENT: False, # optional
35 CharacteristicName.VOLTAGE: False, # optional
36 CharacteristicName.AVERAGE_CURRENT: False, # optional
37 CharacteristicName.AVERAGE_VOLTAGE: False, # optional
38 }