Coverage for src / bluetooth_sig / gatt / __init__.py: 100%
8 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"""GATT package - characteristics, services, and UUID resolution."""
3from __future__ import annotations
5from ..types.registry import CharacteristicSpec, FieldInfo, UnitMetadata
6from .characteristics.base import BaseCharacteristic
7from .constants import (
8 ABSOLUTE_ZERO_CELSIUS,
9 PERCENTAGE_MAX,
10 SINT8_MAX,
11 SINT8_MIN,
12 SINT16_MAX,
13 TEMPERATURE_RESOLUTION,
14 UINT8_MAX,
15 UINT16_MAX,
16)
17from .exceptions import (
18 BluetoothSIGError,
19 CharacteristicError,
20 DataParsingError,
21 ServiceError,
22 UUIDResolutionError,
23 ValueRangeError,
24)
25from .services.base import BaseGattService
26from .uuid_registry import UuidRegistry, uuid_registry
28__all__ = [
29 "BaseGattService",
30 "BaseCharacteristic",
31 "CharacteristicSpec",
32 "FieldInfo",
33 "UnitMetadata",
34 "UuidRegistry",
35 "uuid_registry",
36 # Constants
37 "ABSOLUTE_ZERO_CELSIUS",
38 "PERCENTAGE_MAX",
39 "SINT16_MAX",
40 "SINT8_MAX",
41 "SINT8_MIN",
42 "TEMPERATURE_RESOLUTION",
43 "UINT16_MAX",
44 "UINT8_MAX",
45 # Exceptions
46 "BluetoothSIGError",
47 "CharacteristicError",
48 "DataParsingError",
49 "ServiceError",
50 "UUIDResolutionError",
51 "ValueRangeError",
52]