Coverage for src/bluetooth_sig/gatt/characteristics/voice_assistant_session_state.py: 100%
13 statements
« prev ^ index » next coverage.py v7.14.3, created at 2026-06-28 01:26 +0000
« prev ^ index » next coverage.py v7.14.3, created at 2026-06-28 01:26 +0000
1"""Voice Assistant Session State characteristic (0x2C35)."""
3from __future__ import annotations
5from enum import IntEnum
7from ..constants import SIZE_UINT8
8from .base import BaseCharacteristic
9from .templates import EnumTemplate
12class VoiceAssistantSessionState(IntEnum):
13 """Voice Assistant session state values."""
15 SESSION_RESET = 0x00
16 SESSION_UNAVAILABLE = 0x01
17 SESSION_READY = 0x02
18 SESSION_ACTIVE = 0x03
21class VoiceAssistantSessionStateCharacteristic(BaseCharacteristic[VoiceAssistantSessionState]):
22 """Voice Assistant Session State characteristic (0x2C35).
24 org.bluetooth.characteristic.voice_assistant_session_state
25 """
27 expected_length = SIZE_UINT8
28 _template = EnumTemplate.uint8(VoiceAssistantSessionState)