Coverage for src / bluetooth_sig / types / registry / units.py: 100%
4 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"""Types for Bluetooth SIG units registry."""
3from __future__ import annotations
5from bluetooth_sig.types.registry.common import UuidIdInfo
8class UnitInfo(UuidIdInfo, frozen=True, kw_only=True):
9 """Unit information from Bluetooth SIG units registry.
11 Extends UuidIdInfo with a symbol field for the SI unit symbol.
13 Attributes:
14 uuid: Bluetooth UUID for this unit
15 name: Descriptive name (e.g., "thermodynamic temperature (degree celsius)")
16 id: Org.bluetooth identifier (e.g., "org.bluetooth.unit.thermodynamic_temperature.degree_celsius")
17 symbol: SI unit symbol (e.g., "°C"), derived from name during loading
18 """
20 symbol: str = ""