Coverage for src / bluetooth_sig / gatt / characteristics / playing_order.py: 100%
18 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"""Playing Order characteristic (0x2BA1)."""
3from __future__ import annotations
5from enum import IntEnum
7from .base import BaseCharacteristic
8from .templates import EnumTemplate
11class PlayingOrder(IntEnum):
12 """Playing order enumeration."""
14 SINGLE_ONCE = 0x01
15 SINGLE_REPEAT = 0x02
16 IN_ORDER_ONCE = 0x03
17 IN_ORDER_REPEAT = 0x04
18 OLDEST_ONCE = 0x05
19 OLDEST_REPEAT = 0x06
20 NEWEST_ONCE = 0x07
21 NEWEST_REPEAT = 0x08
22 SHUFFLE_ONCE = 0x09
23 SHUFFLE_REPEAT = 0x0A
26class PlayingOrderCharacteristic(BaseCharacteristic[PlayingOrder]):
27 """Playing Order characteristic (0x2BA1).
29 org.bluetooth.characteristic.playing_order
31 The current playing order of the media player.
32 """
34 expected_length: int = 1
35 _template = EnumTemplate.uint8(PlayingOrder)