vsslctrl 0.2.1__tar.gz → 0.2.2__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 (34) hide show
  1. {vsslctrl-0.2.1 → vsslctrl-0.2.2}/PKG-INFO +1 -1
  2. {vsslctrl-0.2.1 → vsslctrl-0.2.2}/pyproject.toml +1 -1
  3. {vsslctrl-0.2.1 → vsslctrl-0.2.2}/vsslctrl/__init__.py +1 -1
  4. {vsslctrl-0.2.1 → vsslctrl-0.2.2}/vsslctrl/api_alpha.py +10 -4
  5. {vsslctrl-0.2.1 → vsslctrl-0.2.2}/vsslctrl.egg-info/PKG-INFO +1 -1
  6. {vsslctrl-0.2.1 → vsslctrl-0.2.2}/LICENSE +0 -0
  7. {vsslctrl-0.2.1 → vsslctrl-0.2.2}/README.md +0 -0
  8. {vsslctrl-0.2.1 → vsslctrl-0.2.2}/setup.cfg +0 -0
  9. {vsslctrl-0.2.1 → vsslctrl-0.2.2}/tests/test_api.py +0 -0
  10. {vsslctrl-0.2.1 → vsslctrl-0.2.2}/tests/test_device.py +0 -0
  11. {vsslctrl-0.2.1 → vsslctrl-0.2.2}/tests/test_event_bus.py +0 -0
  12. {vsslctrl-0.2.1 → vsslctrl-0.2.2}/tests/test_integration.py +0 -0
  13. {vsslctrl-0.2.1 → vsslctrl-0.2.2}/tests/test_settings.py +0 -0
  14. {vsslctrl-0.2.1 → vsslctrl-0.2.2}/tests/test_zone.py +0 -0
  15. {vsslctrl-0.2.1 → vsslctrl-0.2.2}/vsslctrl/api_base.py +0 -0
  16. {vsslctrl-0.2.1 → vsslctrl-0.2.2}/vsslctrl/api_bravo.py +0 -0
  17. {vsslctrl-0.2.1 → vsslctrl-0.2.2}/vsslctrl/core.py +0 -0
  18. {vsslctrl-0.2.1 → vsslctrl-0.2.2}/vsslctrl/data_structure.py +0 -0
  19. {vsslctrl-0.2.1 → vsslctrl-0.2.2}/vsslctrl/decorators.py +0 -0
  20. {vsslctrl-0.2.1 → vsslctrl-0.2.2}/vsslctrl/device.py +0 -0
  21. {vsslctrl-0.2.1 → vsslctrl-0.2.2}/vsslctrl/discovery.py +0 -0
  22. {vsslctrl-0.2.1 → vsslctrl-0.2.2}/vsslctrl/event_bus.py +0 -0
  23. {vsslctrl-0.2.1 → vsslctrl-0.2.2}/vsslctrl/exceptions.py +0 -0
  24. {vsslctrl-0.2.1 → vsslctrl-0.2.2}/vsslctrl/group.py +0 -0
  25. {vsslctrl-0.2.1 → vsslctrl-0.2.2}/vsslctrl/io.py +0 -0
  26. {vsslctrl-0.2.1 → vsslctrl-0.2.2}/vsslctrl/settings.py +0 -0
  27. {vsslctrl-0.2.1 → vsslctrl-0.2.2}/vsslctrl/track.py +0 -0
  28. {vsslctrl-0.2.1 → vsslctrl-0.2.2}/vsslctrl/transport.py +0 -0
  29. {vsslctrl-0.2.1 → vsslctrl-0.2.2}/vsslctrl/utils.py +0 -0
  30. {vsslctrl-0.2.1 → vsslctrl-0.2.2}/vsslctrl/zone.py +0 -0
  31. {vsslctrl-0.2.1 → vsslctrl-0.2.2}/vsslctrl.egg-info/SOURCES.txt +0 -0
  32. {vsslctrl-0.2.1 → vsslctrl-0.2.2}/vsslctrl.egg-info/dependency_links.txt +0 -0
  33. {vsslctrl-0.2.1 → vsslctrl-0.2.2}/vsslctrl.egg-info/requires.txt +0 -0
  34. {vsslctrl-0.2.1 → vsslctrl-0.2.2}/vsslctrl.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: vsslctrl
3
- Version: 0.2.1
3
+ Version: 0.2.2
4
4
  Summary: Package for controlling VSSL's range of streaming amplifiers
5
5
  Author-email: vsslctrl <vsslcontrolled@proton.me>
6
6
  Classifier: Development Status :: 4 - Beta
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "vsslctrl"
7
- version = "0.2.1"
7
+ version = "0.2.2"
8
8
  description = "Package for controlling VSSL's range of streaming amplifiers"
9
9
  authors = [
10
10
  { name="vsslctrl", email="vsslcontrolled@proton.me" },
@@ -1,4 +1,4 @@
1
- VSSL_VERSION = "0.2.1"
1
+ VSSL_VERSION = "0.2.2"
2
2
  VSSL_NAME = "VSSL"
3
3
 
4
4
  LOG_DIVIDER = "------------------------------------------------------"
@@ -1773,13 +1773,19 @@ class APIAlpha(APIBase):
1773
1773
  command = bytearray([16, 85])
1774
1774
  command.extend(struct.pack(">B", len(string) + 2))
1775
1775
 
1776
- # Zone 0 will play on all zones
1777
- channel = 0 if all_zones else self.zone.id
1776
+ # Channel: 0 = all zones, 1 = this (the connected) zone. Each Zone has its
1777
+ # own TCP connection (zone.host), so the target is always channel 1 from
1778
+ # that connection's perspective. Previously this sent self.zone.id, which
1779
+ # produced no playback on multi-zone units for zones with id > 1 (verified
1780
+ # on an A.6x: zone 4 never played with channel byte 4; channel 1 works).
1781
+ channel = 0 if all_zones else 1
1778
1782
  command.extend([channel])
1779
1783
 
1780
- # Volume
1784
+ # Volume — the announcement plays at `volume` (0-100), falling back to the
1785
+ # zone's current volume when not supplied. Previously this sent
1786
+ # self.zone.volume unconditionally, so the `volume` argument was ignored.
1781
1787
  vol = self.zone.volume if volume == None else clamp_volume(volume)
1782
- command.extend([self.zone.volume])
1788
+ command.extend([vol])
1783
1789
 
1784
1790
  # Add URL to request
1785
1791
  command.extend(self._encode_frame_data(string))
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: vsslctrl
3
- Version: 0.2.1
3
+ Version: 0.2.2
4
4
  Summary: Package for controlling VSSL's range of streaming amplifiers
5
5
  Author-email: vsslctrl <vsslcontrolled@proton.me>
6
6
  Classifier: Development Status :: 4 - Beta
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
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes