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.
- {python_linkplay-0.0.17/src/python_linkplay.egg-info → python_linkplay-0.0.18}/PKG-INFO +1 -1
- python_linkplay-0.0.18/src/linkplay/__version__.py +1 -0
- {python_linkplay-0.0.17 → python_linkplay-0.0.18}/src/linkplay/bridge.py +7 -8
- {python_linkplay-0.0.17 → python_linkplay-0.0.18/src/python_linkplay.egg-info}/PKG-INFO +1 -1
- python_linkplay-0.0.17/src/linkplay/__version__.py +0 -1
- {python_linkplay-0.0.17 → python_linkplay-0.0.18}/LICENSE +0 -0
- {python_linkplay-0.0.17 → python_linkplay-0.0.18}/README.md +0 -0
- {python_linkplay-0.0.17 → python_linkplay-0.0.18}/pyproject.toml +0 -0
- {python_linkplay-0.0.17 → python_linkplay-0.0.18}/setup.cfg +0 -0
- {python_linkplay-0.0.17 → python_linkplay-0.0.18}/setup.py +0 -0
- {python_linkplay-0.0.17 → python_linkplay-0.0.18}/src/linkplay/__init__.py +0 -0
- {python_linkplay-0.0.17 → python_linkplay-0.0.18}/src/linkplay/__main__.py +0 -0
- {python_linkplay-0.0.17 → python_linkplay-0.0.18}/src/linkplay/consts.py +0 -0
- {python_linkplay-0.0.17 → python_linkplay-0.0.18}/src/linkplay/controller.py +0 -0
- {python_linkplay-0.0.17 → python_linkplay-0.0.18}/src/linkplay/discovery.py +0 -0
- {python_linkplay-0.0.17 → python_linkplay-0.0.18}/src/linkplay/endpoint.py +0 -0
- {python_linkplay-0.0.17 → python_linkplay-0.0.18}/src/linkplay/exceptions.py +0 -0
- {python_linkplay-0.0.17 → python_linkplay-0.0.18}/src/linkplay/utils.py +0 -0
- {python_linkplay-0.0.17 → python_linkplay-0.0.18}/src/python_linkplay.egg-info/SOURCES.txt +0 -0
- {python_linkplay-0.0.17 → python_linkplay-0.0.18}/src/python_linkplay.egg-info/dependency_links.txt +0 -0
- {python_linkplay-0.0.17 → python_linkplay-0.0.18}/src/python_linkplay.egg-info/not-zip-safe +0 -0
- {python_linkplay-0.0.17 → python_linkplay-0.0.18}/src/python_linkplay.egg-info/requires.txt +0 -0
- {python_linkplay-0.0.17 → python_linkplay-0.0.18}/src/python_linkplay.egg-info/top_level.txt +0 -0
@@ -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)
|
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
|
-
|
74
|
-
|
75
|
-
|
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
|
-
|
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 +0,0 @@
|
|
1
|
-
__version__ = '0.0.17'
|
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
|
{python_linkplay-0.0.17 → python_linkplay-0.0.18}/src/python_linkplay.egg-info/dependency_links.txt
RENAMED
File without changes
|
File without changes
|
File without changes
|
{python_linkplay-0.0.17 → python_linkplay-0.0.18}/src/python_linkplay.egg-info/top_level.txt
RENAMED
File without changes
|