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

6 statements  

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

1"""InsulinDelivery 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 InsulinDeliveryService(BaseGattService): 

12 """Insulin Delivery Service implementation (0x183A). 

13 

14 Used for insulin delivery devices (insulin pumps). Provides 

15 device features, delivery status, command control, and 

16 historical data access. 

17 """ 

18 

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

20 CharacteristicName.IDD_STATUS_CHANGED: True, 

21 CharacteristicName.IDD_STATUS: True, 

22 CharacteristicName.IDD_ANNUNCIATION_STATUS: True, 

23 CharacteristicName.IDD_FEATURES: True, 

24 CharacteristicName.IDD_STATUS_READER_CONTROL_POINT: True, 

25 CharacteristicName.IDD_COMMAND_CONTROL_POINT: False, 

26 CharacteristicName.IDD_COMMAND_DATA: False, 

27 CharacteristicName.IDD_RECORD_ACCESS_CONTROL_POINT: False, 

28 CharacteristicName.IDD_HISTORY_DATA: False, 

29 }