PyLoxone-Audio 0.1.3__tar.gz → 0.1.4.post1__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.
Files changed (77) hide show
  1. {pyloxone_audio-0.1.3 → pyloxone_audio-0.1.4.post1}/API.md +4 -4
  2. pyloxone_audio-0.1.4.post1/CHANGELOG.md +13 -0
  3. {pyloxone_audio-0.1.3 → pyloxone_audio-0.1.4.post1}/DIAGNOSTICS-REFERENCE.md +3 -3
  4. {pyloxone_audio-0.1.3 → pyloxone_audio-0.1.4.post1}/KNOWN-ISSUES.md +3 -0
  5. {pyloxone_audio-0.1.3 → pyloxone_audio-0.1.4.post1}/MANIFEST.in +1 -1
  6. {pyloxone_audio-0.1.3 → pyloxone_audio-0.1.4.post1}/PKG-INFO +2 -2
  7. {pyloxone_audio-0.1.3 → pyloxone_audio-0.1.4.post1}/PyLoxone_Audio.egg-info/PKG-INFO +2 -2
  8. {pyloxone_audio-0.1.3 → pyloxone_audio-0.1.4.post1}/PyLoxone_Audio.egg-info/SOURCES.txt +1 -1
  9. {pyloxone_audio-0.1.3 → pyloxone_audio-0.1.4.post1}/README.md +1 -1
  10. pyloxone_audio-0.1.4.post1/RELEASE-NOTES-0.1.4.post1.md +14 -0
  11. {pyloxone_audio-0.1.3 → pyloxone_audio-0.1.4.post1}/USER-GUIDE.md +4 -4
  12. {pyloxone_audio-0.1.3 → pyloxone_audio-0.1.4.post1}/pyloxone_audio/__init__.py +3 -1
  13. {pyloxone_audio-0.1.3 → pyloxone_audio-0.1.4.post1}/pyloxone_audio/grouping.py +14 -4
  14. {pyloxone_audio-0.1.3 → pyloxone_audio-0.1.4.post1}/pyproject.toml +1 -1
  15. pyloxone_audio-0.1.3/CHANGELOG.md +0 -13
  16. pyloxone_audio-0.1.3/RELEASE-NOTES-0.1.3.md +0 -32
  17. {pyloxone_audio-0.1.3 → pyloxone_audio-0.1.4.post1}/AUTOMATION-GROUPING.md +0 -0
  18. {pyloxone_audio-0.1.3 → pyloxone_audio-0.1.4.post1}/DIAGNOSTICS.md +0 -0
  19. {pyloxone_audio-0.1.3 → pyloxone_audio-0.1.4.post1}/LICENSE +0 -0
  20. {pyloxone_audio-0.1.3 → pyloxone_audio-0.1.4.post1}/NOTICE.md +0 -0
  21. {pyloxone_audio-0.1.3 → pyloxone_audio-0.1.4.post1}/PyLoxone_Audio.egg-info/dependency_links.txt +0 -0
  22. {pyloxone_audio-0.1.3 → pyloxone_audio-0.1.4.post1}/PyLoxone_Audio.egg-info/requires.txt +0 -0
  23. {pyloxone_audio-0.1.3 → pyloxone_audio-0.1.4.post1}/PyLoxone_Audio.egg-info/top_level.txt +0 -0
  24. {pyloxone_audio-0.1.3 → pyloxone_audio-0.1.4.post1}/pyloxone_audio/announcement.py +0 -0
  25. {pyloxone_audio-0.1.3 → pyloxone_audio-0.1.4.post1}/pyloxone_audio/catalogue.py +0 -0
  26. {pyloxone_audio-0.1.3 → pyloxone_audio-0.1.4.post1}/pyloxone_audio/clock.py +0 -0
  27. {pyloxone_audio-0.1.3 → pyloxone_audio-0.1.4.post1}/pyloxone_audio/diagnostic_events.py +0 -0
  28. {pyloxone_audio-0.1.3 → pyloxone_audio-0.1.4.post1}/pyloxone_audio/metadata.py +0 -0
  29. {pyloxone_audio-0.1.3 → pyloxone_audio-0.1.4.post1}/pyloxone_audio/models.py +0 -0
  30. {pyloxone_audio-0.1.3 → pyloxone_audio-0.1.4.post1}/pyloxone_audio/native.py +0 -0
  31. {pyloxone_audio-0.1.3 → pyloxone_audio-0.1.4.post1}/pyloxone_audio/py.typed +0 -0
  32. {pyloxone_audio-0.1.3 → pyloxone_audio-0.1.4.post1}/pyloxone_audio/radio.py +0 -0
  33. {pyloxone_audio-0.1.3 → pyloxone_audio-0.1.4.post1}/pyloxone_audio/selection.py +0 -0
  34. {pyloxone_audio-0.1.3 → pyloxone_audio-0.1.4.post1}/pyloxone_audio/sources.py +0 -0
  35. {pyloxone_audio-0.1.3 → pyloxone_audio-0.1.4.post1}/setup.cfg +0 -0
  36. {pyloxone_audio-0.1.3 → pyloxone_audio-0.1.4.post1}/tests/library/conftest.py +0 -0
  37. {pyloxone_audio-0.1.3 → pyloxone_audio-0.1.4.post1}/tests/library/fixtures/audioserver/README.md +0 -0
  38. {pyloxone_audio-0.1.3 → pyloxone_audio-0.1.4.post1}/tests/library/fixtures/audioserver/sebastian_alarm_end.txt +0 -0
  39. {pyloxone_audio-0.1.3 → pyloxone_audio-0.1.4.post1}/tests/library/fixtures/audioserver/sebastian_loxone_radio.json +0 -0
  40. {pyloxone_audio-0.1.3 → pyloxone_audio-0.1.4.post1}/tests/library/fixtures/audioserver/sebastian_tts.json +0 -0
  41. {pyloxone_audio-0.1.3 → pyloxone_audio-0.1.4.post1}/tests/library/fixtures/audioserver/sebastian_tunein.json +0 -0
  42. {pyloxone_audio-0.1.3 → pyloxone_audio-0.1.4.post1}/tests/library/pytest.ini +0 -0
  43. {pyloxone_audio-0.1.3 → pyloxone_audio-0.1.4.post1}/tests/library/test_audio_grouping.py +0 -0
  44. {pyloxone_audio-0.1.3 → pyloxone_audio-0.1.4.post1}/tests/library/test_audio_modes.py +0 -0
  45. {pyloxone_audio-0.1.3 → pyloxone_audio-0.1.4.post1}/tests/library/test_audioserver_announcement.py +0 -0
  46. {pyloxone_audio-0.1.3 → pyloxone_audio-0.1.4.post1}/tests/library/test_audioserver_connection.py +0 -0
  47. {pyloxone_audio-0.1.3 → pyloxone_audio-0.1.4.post1}/tests/library/test_audioserver_events.py +0 -0
  48. {pyloxone_audio-0.1.3 → pyloxone_audio-0.1.4.post1}/tests/library/test_audioserver_library_source.py +0 -0
  49. {pyloxone_audio-0.1.3 → pyloxone_audio-0.1.4.post1}/tests/library/test_audioserver_metadata.py +0 -0
  50. {pyloxone_audio-0.1.3 → pyloxone_audio-0.1.4.post1}/tests/library/test_audioserver_playback.py +0 -0
  51. {pyloxone_audio-0.1.3 → pyloxone_audio-0.1.4.post1}/tests/library/test_audioserver_seek.py +0 -0
  52. {pyloxone_audio-0.1.3 → pyloxone_audio-0.1.4.post1}/tests/library/test_audioserver_timing.py +0 -0
  53. {pyloxone_audio-0.1.3 → pyloxone_audio-0.1.4.post1}/tests/library/test_audioserver_wire.py +0 -0
  54. {pyloxone_audio-0.1.3 → pyloxone_audio-0.1.4.post1}/tests/library/test_automation_group_intent.py +0 -0
  55. {pyloxone_audio-0.1.3 → pyloxone_audio-0.1.4.post1}/tests/library/test_boundary_environment.py +0 -0
  56. {pyloxone_audio-0.1.3 → pyloxone_audio-0.1.4.post1}/tests/library/test_boundary_ownership.py +0 -0
  57. {pyloxone_audio-0.1.3 → pyloxone_audio-0.1.4.post1}/tests/library/test_boundary_qualification.py +0 -0
  58. {pyloxone_audio-0.1.3 → pyloxone_audio-0.1.4.post1}/tests/library/test_diagnostic_events.py +0 -0
  59. {pyloxone_audio-0.1.3 → pyloxone_audio-0.1.4.post1}/tests/library/test_diagnostic_operations.py +0 -0
  60. {pyloxone_audio-0.1.3 → pyloxone_audio-0.1.4.post1}/tests/library/test_diagnostic_request_kinds.py +0 -0
  61. {pyloxone_audio-0.1.3 → pyloxone_audio-0.1.4.post1}/tests/library/test_diagnostic_timing.py +0 -0
  62. {pyloxone_audio-0.1.3 → pyloxone_audio-0.1.4.post1}/tests/library/test_diagnostic_wire.py +0 -0
  63. {pyloxone_audio-0.1.3 → pyloxone_audio-0.1.4.post1}/tests/library/test_distribution_dependencies.py +0 -0
  64. {pyloxone_audio-0.1.3 → pyloxone_audio-0.1.4.post1}/tests/library/test_exact_track_start.py +0 -0
  65. {pyloxone_audio-0.1.3 → pyloxone_audio-0.1.4.post1}/tests/library/test_group_commands.py +0 -0
  66. {pyloxone_audio-0.1.3 → pyloxone_audio-0.1.4.post1}/tests/library/test_group_coordinator.py +0 -0
  67. {pyloxone_audio-0.1.3 → pyloxone_audio-0.1.4.post1}/tests/library/test_group_planning.py +0 -0
  68. {pyloxone_audio-0.1.3 → pyloxone_audio-0.1.4.post1}/tests/library/test_group_revocation_r1.py +0 -0
  69. {pyloxone_audio-0.1.3 → pyloxone_audio-0.1.4.post1}/tests/library/test_group_transport.py +0 -0
  70. {pyloxone_audio-0.1.3 → pyloxone_audio-0.1.4.post1}/tests/library/test_grouping_numeric_validation.py +0 -0
  71. {pyloxone_audio-0.1.3 → pyloxone_audio-0.1.4.post1}/tests/library/test_playback_failure_recovery.py +0 -0
  72. {pyloxone_audio-0.1.3 → pyloxone_audio-0.1.4.post1}/tests/library/test_portable_policies.py +0 -0
  73. {pyloxone_audio-0.1.3 → pyloxone_audio-0.1.4.post1}/tests/library/test_published_authentication.py +0 -0
  74. {pyloxone_audio-0.1.3 → pyloxone_audio-0.1.4.post1}/tests/library/test_restore_readiness.py +0 -0
  75. {pyloxone_audio-0.1.3 → pyloxone_audio-0.1.4.post1}/tests/library/test_room_reply_review03.py +0 -0
  76. {pyloxone_audio-0.1.3 → pyloxone_audio-0.1.4.post1}/tests/library/test_room_transport.py +0 -0
  77. {pyloxone_audio-0.1.3 → pyloxone_audio-0.1.4.post1}/tests/library/test_volume_failure_recovery.py +0 -0
@@ -1,7 +1,7 @@
1
- # PyLoxone-Audio 0.1.3 — API and compatibility
1
+ # PyLoxone-Audio 0.1.4.post1 — API and compatibility
2
2
 
3
3
  An Apache-2.0 Python library for native audio communication, consumed by the
4
- existing PyLoxone integration. The matching reference adapter is 0.10.3.dev18
4
+ existing PyLoxone integration. The matching reference adapter is 0.1.4
5
5
  on stock PyLoxone 0.10.3. See [NOTICE.md](NOTICE.md) for attribution.
6
6
 
7
7
  ## Concrete public API and ownership
@@ -85,9 +85,9 @@ the supported enable/export workflow, exact bounds and evidence/privacy limits.
85
85
 
86
86
  ## Installation and host compatibility
87
87
 
88
- Requires Python >=3.14. Install `PyLoxone-Audio==0.1.3` for standalone consumers.
88
+ Requires Python >=3.14. Install `PyLoxone-Audio==0.1.4.post1` for standalone consumers.
89
89
  Home Assistant users need the matching component and frontend described in the
90
- [installation guide](preview-build/README.md); HA installs Python dependencies.
90
+ [installation guide](https://github.com/davehocking/PyLoxone-Audio/blob/main/preview-build/README.md); HA installs Python dependencies.
91
91
  Keep domain `loxone`, existing entries/entities and the exact compatible pin.
92
92
  Source and installed-wheel checks use synthetic external I/O and real local
93
93
  WebSocket/crypto boundaries. They do not require household credentials.
@@ -0,0 +1,13 @@
1
+ # Changelog
2
+
3
+ ## 0.1.4.post1
4
+
5
+ - Documentation and packaging revision of library 0.1.4, paired with reference adapter 0.1.4 and the exact library requirement `PyLoxone-Audio==0.1.4.post1`. Audio behaviour and frontend r12 are unchanged.
6
+
7
+ ## 0.1.4
8
+
9
+ - Longer bounded feedback waits for large serially qualified audio groups.
10
+ - Full-width group/member volume sliders with percentage and −/+ controls.
11
+ - Original release: library 0.1.4, reference adapter 0.10.3.dev19 and frontend r12 on stock PyLoxone 0.10.3.
12
+
13
+ [Current release notes](RELEASE-NOTES-0.1.4.post1.md). Earlier releases remain in Git history and GitHub Releases.
@@ -1,11 +1,11 @@
1
1
  # Audio diagnostics and native Home Assistant tools
2
2
 
3
- For library 0.1.3 and reference adapter 0.10.3.dev18. Start with the
4
- [installation guide](preview-build/README.md).
3
+ For library 0.1.4.post1 and reference adapter 0.1.4. Start with the
4
+ [installation guide](https://github.com/davehocking/PyLoxone-Audio/blob/main/preview-build/README.md).
5
5
  New users default OFF; existing saved preferences are preserved. Install the
6
6
  matching adapter/library pair: installing only the wheel does not add the switch.
7
7
  The event schema remains version1 with an extended fixed allowlist; defaults and
8
- storage/age bounds remain unchanged. The 0.1.3 library and reference adapter add source-independent incident correlation and noise control.
8
+ storage/age bounds remain unchanged. The 0.1.4 library and reference adapter add source-independent incident correlation and noise control.
9
9
  Diagnostics neither enables the Audio Server client nor repairs playback. Set the
10
10
  Audio Server host and existing experimental playback option separately; see
11
11
  [Required setup](README.md#required-setup).
@@ -14,6 +14,9 @@
14
14
  - Radio startup can be slow and room-favourite artwork can be missing. Allow the
15
15
  station to start before repeating a play request.
16
16
 
17
+ - Browse can occasionally time out. Reopen Browse if it does; avoid repeated
18
+ playback requests while a group operation is still pending.
19
+
17
20
  Use [Audio diagnostics](DIAGNOSTICS.md) to report a problem. Include the incident
18
21
  time/timezone, versions, normal steps and expected versus observed behaviour.
19
22
 
@@ -15,7 +15,7 @@ include DIAGNOSTICS.md
15
15
  include KNOWN-ISSUES.md
16
16
  include CHANGELOG.md
17
17
 
18
- include RELEASE-NOTES-0.1.3.md
18
+ include RELEASE-NOTES-0.1.4.post1.md
19
19
  include USER-GUIDE.md
20
20
  include DIAGNOSTICS-REFERENCE.md
21
21
  include AUTOMATION-GROUPING.md
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: PyLoxone-Audio
3
- Version: 0.1.3
3
+ Version: 0.1.4.post1
4
4
  Summary: Native audio transport and source policies for PyLoxone
5
5
  License-Expression: Apache-2.0
6
6
  Project-URL: Homepage, https://github.com/davehocking/PyLoxone-Audio
@@ -20,7 +20,7 @@ Dynamic: license-file
20
20
 
21
21
  Audio features for [PyLoxone](https://github.com/JoDehli/PyLoxone), using your existing Home Assistant integration and room players.
22
22
 
23
- **Version 0.1.3:** library **0.1.3**, reference adapter **0.10.3.dev18**, frontend **r10**, based on PyLoxone **0.10.3**. Install the matching preview below; Home Assistant resolves `PyLoxone-Audio==0.1.3` through its normal dependency handling. Installing the library alone does not update the integration.
23
+ **Version 0.1.4 (documentation revision):** library **0.1.4.post1**, reference adapter **0.1.4**, frontend **r12**, based on PyLoxone **0.10.3**. Install the matching preview below; Home Assistant resolves `PyLoxone-Audio==0.1.4.post1` through its normal dependency handling. Installing the library alone does not update the integration.
24
24
 
25
25
  ## Start here
26
26
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: PyLoxone-Audio
3
- Version: 0.1.3
3
+ Version: 0.1.4.post1
4
4
  Summary: Native audio transport and source policies for PyLoxone
5
5
  License-Expression: Apache-2.0
6
6
  Project-URL: Homepage, https://github.com/davehocking/PyLoxone-Audio
@@ -20,7 +20,7 @@ Dynamic: license-file
20
20
 
21
21
  Audio features for [PyLoxone](https://github.com/JoDehli/PyLoxone), using your existing Home Assistant integration and room players.
22
22
 
23
- **Version 0.1.3:** library **0.1.3**, reference adapter **0.10.3.dev18**, frontend **r10**, based on PyLoxone **0.10.3**. Install the matching preview below; Home Assistant resolves `PyLoxone-Audio==0.1.3` through its normal dependency handling. Installing the library alone does not update the integration.
23
+ **Version 0.1.4 (documentation revision):** library **0.1.4.post1**, reference adapter **0.1.4**, frontend **r12**, based on PyLoxone **0.10.3**. Install the matching preview below; Home Assistant resolves `PyLoxone-Audio==0.1.4.post1` through its normal dependency handling. Installing the library alone does not update the integration.
24
24
 
25
25
  ## Start here
26
26
 
@@ -8,7 +8,7 @@ LICENSE
8
8
  MANIFEST.in
9
9
  NOTICE.md
10
10
  README.md
11
- RELEASE-NOTES-0.1.3.md
11
+ RELEASE-NOTES-0.1.4.post1.md
12
12
  USER-GUIDE.md
13
13
  pyproject.toml
14
14
  PyLoxone_Audio.egg-info/PKG-INFO
@@ -2,7 +2,7 @@
2
2
 
3
3
  Audio features for [PyLoxone](https://github.com/JoDehli/PyLoxone), using your existing Home Assistant integration and room players.
4
4
 
5
- **Version 0.1.3:** library **0.1.3**, reference adapter **0.10.3.dev18**, frontend **r10**, based on PyLoxone **0.10.3**. Install the matching preview below; Home Assistant resolves `PyLoxone-Audio==0.1.3` through its normal dependency handling. Installing the library alone does not update the integration.
5
+ **Version 0.1.4 (documentation revision):** library **0.1.4.post1**, reference adapter **0.1.4**, frontend **r12**, based on PyLoxone **0.10.3**. Install the matching preview below; Home Assistant resolves `PyLoxone-Audio==0.1.4.post1` through its normal dependency handling. Installing the library alone does not update the integration.
6
6
 
7
7
  ## Start here
8
8
 
@@ -0,0 +1,14 @@
1
+ # PyLoxone-Audio 0.1.4.post1
2
+
3
+ Documentation revision: library **0.1.4.post1**, reference adapter **0.1.4**, frontend **r12**,
4
+ based on PyLoxone **0.10.3**. Install the matching component and frontend;
5
+ installing the library alone does not update the integration.
6
+
7
+ Audio functionality is unchanged from 0.1.4. Larger groups have time for serial member qualification and volume feedback.
8
+ Group and room volume sliders each use a full-width line, with percentage and
9
+ −/+ controls above. Existing controls, grouping rules and defaults are retained.
10
+
11
+ [Install, upgrade or roll back](https://github.com/davehocking/PyLoxone-Audio/blob/main/preview-build/README.md). Set **Audioserver host**
12
+ and enable **Use Audio Server player play/pause (experimental; off by default)**
13
+ in the existing Loxone entry's options. Audio diagnostics remains separate and
14
+ optional. See the [user guide](USER-GUIDE.md) and [current limits](KNOWN-ISSUES.md).
@@ -1,6 +1,6 @@
1
1
  # Using the audio players
2
2
 
3
- Install the [matching preview](preview-build/README.md) and complete [Required setup](README.md#required-setup) first.
3
+ Install the [matching preview](https://github.com/davehocking/PyLoxone-Audio/blob/main/preview-build/README.md) and complete [Required setup](README.md#required-setup) first.
4
4
 
5
5
  ## Choose music or return to a source
6
6
 
@@ -12,7 +12,7 @@ Returning to Spotify or Local Library can restore the remembered track and try i
12
12
 
13
13
  ## Create or edit a group
14
14
 
15
- Open the room's expanded player (**More info**) and choose **Join** to open **Audio groups**. The media-control card's grouping entry also opens the manager for supported Loxone rooms. If the ordinary picker appears instead, check [frontend setup](preview-build/README.md#frontend).
15
+ Open the room's expanded player (**More info**) and choose **Join** to open **Audio groups**. The media-control card's grouping entry also opens the manager for supported Loxone rooms. If the ordinary picker appears instead, check [frontend setup](https://github.com/davehocking/PyLoxone-Audio/blob/main/preview-build/README.md#frontend).
16
16
 
17
17
  - **Create Group:** choose at least two free rooms and select **Create**. The first selected room leads. A preselected room can be unticked.
18
18
  - Select a free room to add it immediately; there is no Apply button.
@@ -31,7 +31,7 @@ Only Loxone-managed audio rooms are offered. This manager supports dynamic group
31
31
  | Leader Browse, Source or supported seeking | Shared group music |
32
32
  | Follower's **Media controls on <leader name>** link | Opens the current leader's player |
33
33
 
34
- Use the leader to change the group's music. Shuffle/Repeat appear where native capability and state support them. Group volume shows the rounded mean of room levels; it is not a command to give every room the same volume. Startup/resume volume behaviour remains native to Loxone.
34
+ Use the leader to change the group's music. Shuffle/Repeat appear where native capability and state support them. Each volume slider occupies its own full-width line, with percentage and −/+ controls above it. Group volume shows the rounded mean of room levels; it is not a command to give every room the same volume. Startup/resume volume behaviour remains native to Loxone.
35
35
 
36
36
  ## Automations and troubleshooting
37
37
 
@@ -39,4 +39,4 @@ Use the leader to change the group's music. Shuffle/Repeat appear where native c
39
39
 
40
40
  If something fails, check [Required setup](README.md#required-setup), room availability and the matching backend/frontend versions. For Source errors, first play actual content in Browse; for grouped content, use the leader. If the controls look old, refresh the browser before restarting the backend.
41
41
 
42
- [Report a problem](DIAGNOSTICS.md) · [Known issues](KNOWN-ISSUES.md) · [Install, upgrade or roll back](preview-build/README.md)
42
+ [Report a problem](DIAGNOSTICS.md) · [Known issues](KNOWN-ISSUES.md) · [Install, upgrade or roll back](https://github.com/davehocking/PyLoxone-Audio/blob/main/preview-build/README.md)
@@ -1,9 +1,11 @@
1
1
  """
2
2
  Concrete PyLoxone-Audio API, independent of Home Assistant.
3
3
 
4
- Apache-2.0. Version 0.1.3.
4
+ Apache-2.0. Version 0.1.4.post1.
5
5
  The historical fake-backed facade contract is outside this distribution.
6
6
  """
7
+ __version__ = "0.1.4.post1"
8
+
7
9
  from .announcement import async_send_prepared_announcement
8
10
  from .catalogue import AudioCatalogue, CatalogueTarget, ConfiguredSource
9
11
  from .metadata import AudioMetadataCoordinator
@@ -476,7 +476,7 @@ class AudioGroupCoordinator:
476
476
  nonlocal sent
477
477
  sent = True
478
478
  try:
479
- async with asyncio.timeout(self.timeout), self._lock:
479
+ async with asyncio.timeout(self.timeout) as deadline, self._lock:
480
480
  if (
481
481
  not request_current() or self._closed or self.snapshot is None or self.uncertain
482
482
  or generation != self._generation or context != self.context()
@@ -500,11 +500,17 @@ class AudioGroupCoordinator:
500
500
  if not applicable():
501
501
  raise AudioCommandError("Grouped transport is unavailable")
502
502
  if prepare is not None:
503
- # Qualification is request-local, under the unchanged group
504
- # lock/deadline/reservation, never a broadcast-cache repair.
503
+ # Keep the original lock-wait bound. Serial qualification
504
+ # gets one bounded request (including cleanup) per member,
505
+ # then transmission gets its own original bound. A party
506
+ # must not spend its command budget closing status sockets.
507
+ if action == "play":
508
+ deadline.reschedule(asyncio.get_running_loop().time() + self.timeout * len(players))
505
509
  await prepare(players, applicable)
506
510
  if not applicable():
507
511
  raise AudioCommandError("Grouped pre-command qualification was superseded")
512
+ if action == "play":
513
+ deadline.reschedule(asyncio.get_running_loop().time() + self.timeout)
508
514
  if room_only:
509
515
  await self.commands.async_execute(target, action, is_current=applicable, on_send=on_send, guard_cleanup=True)
510
516
  else:
@@ -558,7 +564,7 @@ class AudioGroupCoordinator:
558
564
 
559
565
  self._requests.add(current)
560
566
  try:
561
- async with asyncio.timeout(self.timeout), self._lock:
567
+ async with asyncio.timeout(self.timeout) as deadline, self._lock:
562
568
  if not current():
563
569
  raise AudioCommandError("Volume request superseded")
564
570
  self._scope, self._context, self._conflict = frozenset(players), self.context(), False
@@ -569,6 +575,10 @@ class AudioGroupCoordinator:
569
575
  raise AudioCommandError("Partial volume request superseded; no rollback")
570
576
  if targets[player] == initial[player]:
571
577
  continue
578
+ # Each serial send/feedback pair retains the original8s
579
+ # bound. Unrelated feedback cannot renew a stalled member.
580
+ if not room_only:
581
+ deadline.reschedule(asyncio.get_running_loop().time() + self.timeout)
572
582
  sent_targets[player] = targets[player]
573
583
  sent = True
574
584
  send(player, targets[player])
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "PyLoxone-Audio"
7
- version = "0.1.3"
7
+ version = "0.1.4.post1"
8
8
  description = "Native audio transport and source policies for PyLoxone"
9
9
  readme = "README.md"
10
10
  requires-python = ">=3.14"
@@ -1,13 +0,0 @@
1
- # Changelog
2
-
3
- ## 0.1.3
4
-
5
- - Native grouping from room players, leader/follower controls and automation actions.
6
- - Source-return, exact-track, seek qualification and metadata recovery improvements.
7
- - Source-independent bounded diagnostics with operation timelines and noise control.
8
- - Simplified user, installation and maintainer guides.
9
- - Normal `PyLoxone-Audio==0.1.3` dependency; reference adapter 0.10.3.dev18 on stock
10
- PyLoxone 0.10.3, with frontend r10.
11
-
12
- [Release notes](RELEASE-NOTES-0.1.3.md). Earlier releases remain in Git history and
13
- GitHub Releases.
@@ -1,32 +0,0 @@
1
- # PyLoxone-Audio 0.1.3
2
-
3
- Library **0.1.3**, reference adapter **0.10.3.dev18**, frontend **r10**,
4
- based on stock PyLoxone **0.10.3**. This is a matched installation: installing
5
- only the Python library does not replace the Home Assistant component.
6
-
7
- ## Changes since 0.1.2
8
-
9
- - Native audio-group management from room players, with leader/follower controls
10
- and automation grouping actions.
11
- - Improved source return, exact-track and seek qualification, metadata recovery
12
- and request/lifecycle ownership safeguards.
13
- - Source-independent optional diagnostics: operation/command timelines, owned HA
14
- state publication, bounded noise sampling and explicit report omissions.
15
- - Shorter installation, user and maintainer guides. Home Assistant uses the
16
- normal `PyLoxone-Audio==0.1.3` dependency.
17
-
18
- [Install, upgrade or roll back](preview-build/README.md), then set
19
- **Audioserver host** and enable **Use Audio Server player play/pause
20
- (experimental; off by default)** in the existing entry's options. The option also
21
- unlocks Browse/Search, source return, supported seeking, modes, announcements and
22
- enhanced grouping. Audio diagnostics is a separate optional switch, default off
23
- for new users; existing explicit preferences are preserved.
24
-
25
- Bookmarks are process-local and can be lost on restart/reload. Return/position
26
- support is source-dependent, does not restore a full queue, and does not change
27
- native startup/resume volume behaviour. Dynamic groups are limited to one Audio
28
- Server. Radio startup and favourite artwork remain known limitations.
29
- See the [user guide](USER-GUIDE.md) and [Known issues](KNOWN-ISSUES.md).
30
-
31
- See the [maintainer guide](adapters/pyloxone/jo-review/README.md) for the
32
- versioned adapter interface and [PUBLISHING.md](PUBLISHING.md) for release tooling.