python-linkplay 0.2.6__tar.gz → 0.2.8__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {python_linkplay-0.2.6/src/python_linkplay.egg-info → python_linkplay-0.2.8}/PKG-INFO +1 -1
- python_linkplay-0.2.8/src/linkplay/__version__.py +1 -0
- {python_linkplay-0.2.6 → python_linkplay-0.2.8}/src/linkplay/bridge.py +8 -2
- {python_linkplay-0.2.6 → python_linkplay-0.2.8}/src/linkplay/consts.py +9 -0
- {python_linkplay-0.2.6 → python_linkplay-0.2.8}/src/linkplay/discovery.py +1 -0
- {python_linkplay-0.2.6 → python_linkplay-0.2.8/src/python_linkplay.egg-info}/PKG-INFO +1 -1
- python_linkplay-0.2.6/src/linkplay/__version__.py +0 -1
- {python_linkplay-0.2.6 → python_linkplay-0.2.8}/LICENSE +0 -0
- {python_linkplay-0.2.6 → python_linkplay-0.2.8}/README.md +0 -0
- {python_linkplay-0.2.6 → python_linkplay-0.2.8}/pyproject.toml +0 -0
- {python_linkplay-0.2.6 → python_linkplay-0.2.8}/setup.cfg +0 -0
- {python_linkplay-0.2.6 → python_linkplay-0.2.8}/setup.py +0 -0
- {python_linkplay-0.2.6 → python_linkplay-0.2.8}/src/linkplay/__init__.py +0 -0
- {python_linkplay-0.2.6 → python_linkplay-0.2.8}/src/linkplay/__main__.py +0 -0
- {python_linkplay-0.2.6 → python_linkplay-0.2.8}/src/linkplay/controller.py +0 -0
- {python_linkplay-0.2.6 → python_linkplay-0.2.8}/src/linkplay/endpoint.py +0 -0
- {python_linkplay-0.2.6 → python_linkplay-0.2.8}/src/linkplay/exceptions.py +0 -0
- {python_linkplay-0.2.6 → python_linkplay-0.2.8}/src/linkplay/manufacturers.py +0 -0
- {python_linkplay-0.2.6 → python_linkplay-0.2.8}/src/linkplay/utils.py +0 -0
- {python_linkplay-0.2.6 → python_linkplay-0.2.8}/src/python_linkplay.egg-info/SOURCES.txt +0 -0
- {python_linkplay-0.2.6 → python_linkplay-0.2.8}/src/python_linkplay.egg-info/dependency_links.txt +0 -0
- {python_linkplay-0.2.6 → python_linkplay-0.2.8}/src/python_linkplay.egg-info/not-zip-safe +0 -0
- {python_linkplay-0.2.6 → python_linkplay-0.2.8}/src/python_linkplay.egg-info/requires.txt +0 -0
- {python_linkplay-0.2.6 → python_linkplay-0.2.8}/src/python_linkplay.egg-info/top_level.txt +0 -0
@@ -0,0 +1 @@
|
|
1
|
+
__version__ = '0.2.8'
|
@@ -8,6 +8,7 @@ from linkplay.consts import (
|
|
8
8
|
LOGGER,
|
9
9
|
PLAY_MODE_SEND_MAP,
|
10
10
|
AudioOutputHwMode,
|
11
|
+
AudioOutputModeResponse,
|
11
12
|
ChannelType,
|
12
13
|
DeviceAttribute,
|
13
14
|
EqualizerMode,
|
@@ -298,9 +299,14 @@ class LinkPlayPlayer:
|
|
298
299
|
"""Set the audio hardware output."""
|
299
300
|
await self.bridge.request(LinkPlayCommand.AUDIO_OUTPUT_HW_MODE_SET.format(mode))
|
300
301
|
|
301
|
-
async def get_audio_output_hw_mode(self) ->
|
302
|
+
async def get_audio_output_hw_mode(self) -> AudioOutputModeResponse:
|
302
303
|
"""Get the audio hardware output."""
|
303
|
-
await self.bridge.json_request(LinkPlayCommand.AUDIO_OUTPUT_HW_MODE)
|
304
|
+
resp = await self.bridge.json_request(LinkPlayCommand.AUDIO_OUTPUT_HW_MODE)
|
305
|
+
return AudioOutputModeResponse(
|
306
|
+
AudioOutputHwMode(str(resp.get("hardware"))),
|
307
|
+
resp.get("source", "") == "1",
|
308
|
+
resp.get("audiocast", "") == "1",
|
309
|
+
)
|
304
310
|
|
305
311
|
@property
|
306
312
|
def muted(self) -> bool:
|
@@ -520,3 +520,12 @@ AUDIO_OUTPUT_HW_MODE_MAP: dict[AudioOutputHwMode, str] = { # case sensitive!
|
|
520
520
|
AudioOutputHwMode.COAXIAL: "co-axial",
|
521
521
|
AudioOutputHwMode.HEADPHONES: "headphones",
|
522
522
|
}
|
523
|
+
|
524
|
+
|
525
|
+
class AudioOutputModeResponse:
|
526
|
+
"""Defines a response for the audio output hardware mode."""
|
527
|
+
|
528
|
+
def __init__(self, hardware: AudioOutputHwMode, source: bool, audiocast: bool):
|
529
|
+
self.hardware = hardware
|
530
|
+
self.bluetooth_source = source
|
531
|
+
self.audiocast = audiocast
|
@@ -1 +0,0 @@
|
|
1
|
-
__version__ = '0.2.6'
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{python_linkplay-0.2.6 → python_linkplay-0.2.8}/src/python_linkplay.egg-info/dependency_links.txt
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|