python-linkplay 0.0.17__tar.gz → 0.0.18__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 (23) hide show
  1. {python_linkplay-0.0.17/src/python_linkplay.egg-info → python_linkplay-0.0.18}/PKG-INFO +1 -1
  2. python_linkplay-0.0.18/src/linkplay/__version__.py +1 -0
  3. {python_linkplay-0.0.17 → python_linkplay-0.0.18}/src/linkplay/bridge.py +7 -8
  4. {python_linkplay-0.0.17 → python_linkplay-0.0.18/src/python_linkplay.egg-info}/PKG-INFO +1 -1
  5. python_linkplay-0.0.17/src/linkplay/__version__.py +0 -1
  6. {python_linkplay-0.0.17 → python_linkplay-0.0.18}/LICENSE +0 -0
  7. {python_linkplay-0.0.17 → python_linkplay-0.0.18}/README.md +0 -0
  8. {python_linkplay-0.0.17 → python_linkplay-0.0.18}/pyproject.toml +0 -0
  9. {python_linkplay-0.0.17 → python_linkplay-0.0.18}/setup.cfg +0 -0
  10. {python_linkplay-0.0.17 → python_linkplay-0.0.18}/setup.py +0 -0
  11. {python_linkplay-0.0.17 → python_linkplay-0.0.18}/src/linkplay/__init__.py +0 -0
  12. {python_linkplay-0.0.17 → python_linkplay-0.0.18}/src/linkplay/__main__.py +0 -0
  13. {python_linkplay-0.0.17 → python_linkplay-0.0.18}/src/linkplay/consts.py +0 -0
  14. {python_linkplay-0.0.17 → python_linkplay-0.0.18}/src/linkplay/controller.py +0 -0
  15. {python_linkplay-0.0.17 → python_linkplay-0.0.18}/src/linkplay/discovery.py +0 -0
  16. {python_linkplay-0.0.17 → python_linkplay-0.0.18}/src/linkplay/endpoint.py +0 -0
  17. {python_linkplay-0.0.17 → python_linkplay-0.0.18}/src/linkplay/exceptions.py +0 -0
  18. {python_linkplay-0.0.17 → python_linkplay-0.0.18}/src/linkplay/utils.py +0 -0
  19. {python_linkplay-0.0.17 → python_linkplay-0.0.18}/src/python_linkplay.egg-info/SOURCES.txt +0 -0
  20. {python_linkplay-0.0.17 → python_linkplay-0.0.18}/src/python_linkplay.egg-info/dependency_links.txt +0 -0
  21. {python_linkplay-0.0.17 → python_linkplay-0.0.18}/src/python_linkplay.egg-info/not-zip-safe +0 -0
  22. {python_linkplay-0.0.17 → python_linkplay-0.0.18}/src/python_linkplay.egg-info/requires.txt +0 -0
  23. {python_linkplay-0.0.17 → python_linkplay-0.0.18}/src/python_linkplay.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: python_linkplay
3
- Version: 0.0.17
3
+ Version: 0.0.18
4
4
  Summary: A Python Library for Seamless LinkPlay Device Control
5
5
  Author: Velleman Group nv
6
6
  License: MIT
@@ -0,0 +1 @@
1
+ __version__ = '0.0.18'
@@ -64,17 +64,15 @@ class LinkPlayDevice:
64
64
  )
65
65
 
66
66
  playing_modes = [INPUT_MODE_MAP[flag] for flag in flags]
67
- playing_modes.insert(0, PlayingMode.NETWORK) # always supported
67
+ playing_modes.insert(0, PlayingMode.NETWORK) # always supported
68
68
  return playing_modes
69
69
 
70
70
  @property
71
- def eth(self) -> str:
71
+ def eth(self) -> str | None:
72
72
  """Returns the ethernet address."""
73
- return (
74
- self.properties[DeviceAttribute.ETH2]
75
- if DeviceAttribute.ETH_DHCP in self.properties
76
- else self.properties[DeviceAttribute.APCLI0]
77
- )
73
+ eth2 = self.properties.get(DeviceAttribute.ETH2)
74
+ return eth2 if eth2 else self.properties.get(DeviceAttribute.APCLI0)
75
+
78
76
 
79
77
  class LinkPlayPlayer:
80
78
  """Represents a LinkPlay player."""
@@ -177,7 +175,8 @@ class LinkPlayPlayer:
177
175
  async def timesync(self) -> None:
178
176
  """Sync the time."""
179
177
  import time
180
- timestamp = time.strftime('%Y%m%d%H%M%S')
178
+
179
+ timestamp = time.strftime("%Y%m%d%H%M%S")
181
180
  await self.bridge.request(LinkPlayCommand.TIMESYNC.format(timestamp))
182
181
 
183
182
  @property
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: python_linkplay
3
- Version: 0.0.17
3
+ Version: 0.0.18
4
4
  Summary: A Python Library for Seamless LinkPlay Device Control
5
5
  Author: Velleman Group nv
6
6
  License: MIT
@@ -1 +0,0 @@
1
- __version__ = '0.0.17'