Coverage for src / bluetooth_sig / gatt / services / automation_io.py: 100%

7 statements  

« prev     ^ index     » next       coverage.py v7.13.5, created at 2026-04-03 16:41 +0000

1"""Automation IO Service implementation.""" 

2 

3from __future__ import annotations 

4 

5from typing import ClassVar 

6 

7from ..characteristics.registry import CharacteristicName 

8from .base import BaseGattService 

9 

10 

11class AutomationIOService(BaseGattService): 

12 """Automation IO Service implementation. 

13 

14 Contains characteristics related to automation I/O. 

15 """ 

16 

17 _service_name: str | None = "Automation IO" 

18 

19 # AIOS characteristics are conditionally required per service instance. 

20 service_characteristics: ClassVar[dict[CharacteristicName, bool]] = { 

21 CharacteristicName.DIGITAL: False, 

22 CharacteristicName.ANALOG: False, 

23 CharacteristicName.AGGREGATE: False, 

24 }