Coverage for src / bluetooth_sig / gatt / characteristics / uv_index.py: 100%
6 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"""UV Index characteristic implementation."""
3from __future__ import annotations
5from .base import BaseCharacteristic
6from .templates import Uint8Template
9class UVIndexCharacteristic(BaseCharacteristic[int]):
10 """UV Index characteristic (0x2A76).
12 org.bluetooth.characteristic.uv_index
14 UV Index characteristic.
15 """
17 _template = Uint8Template()
19 _characteristic_name: str = "UV Index"
20 # YAML provides uint8 -> int, which is correct for UV Index values (0-11+ scale)