Coverage for src / bluetooth_sig / gatt / characteristics / volume_flags.py: 100%
9 statements
« prev ^ index » next coverage.py v7.13.5, created at 2026-04-03 16:41 +0000
« prev ^ index » next coverage.py v7.13.5, created at 2026-04-03 16:41 +0000
1"""Volume Flags characteristic (0x2B7F)."""
3from __future__ import annotations
5from enum import IntFlag
7from .base import BaseCharacteristic
8from .templates import FlagTemplate
11class VolumeFlags(IntFlag):
12 """Volume flags."""
14 RESET_VOLUME_SETTING = 0x00
15 USER_SET_VOLUME_SETTING = 0x01
18class VolumeFlagsCharacteristic(BaseCharacteristic[VolumeFlags]):
19 """Volume Flags characteristic (0x2B7F).
21 org.bluetooth.characteristic.volume_flags
23 Bitfield indicating volume-related flags.
24 """
26 _template = FlagTemplate.uint8(VolumeFlags)