python-linkplay 0.1.2__tar.gz → 0.1.3__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.1.2/src/python_linkplay.egg-info → python_linkplay-0.1.3}/PKG-INFO +2 -2
  2. python_linkplay-0.1.3/src/linkplay/__version__.py +1 -0
  3. {python_linkplay-0.1.2 → python_linkplay-0.1.3}/src/linkplay/bridge.py +12 -2
  4. {python_linkplay-0.1.2 → python_linkplay-0.1.3/src/python_linkplay.egg-info}/PKG-INFO +2 -2
  5. python_linkplay-0.1.2/src/linkplay/__version__.py +0 -1
  6. {python_linkplay-0.1.2 → python_linkplay-0.1.3}/LICENSE +0 -0
  7. {python_linkplay-0.1.2 → python_linkplay-0.1.3}/README.md +0 -0
  8. {python_linkplay-0.1.2 → python_linkplay-0.1.3}/pyproject.toml +0 -0
  9. {python_linkplay-0.1.2 → python_linkplay-0.1.3}/setup.cfg +0 -0
  10. {python_linkplay-0.1.2 → python_linkplay-0.1.3}/setup.py +0 -0
  11. {python_linkplay-0.1.2 → python_linkplay-0.1.3}/src/linkplay/__init__.py +0 -0
  12. {python_linkplay-0.1.2 → python_linkplay-0.1.3}/src/linkplay/__main__.py +0 -0
  13. {python_linkplay-0.1.2 → python_linkplay-0.1.3}/src/linkplay/consts.py +0 -0
  14. {python_linkplay-0.1.2 → python_linkplay-0.1.3}/src/linkplay/controller.py +0 -0
  15. {python_linkplay-0.1.2 → python_linkplay-0.1.3}/src/linkplay/discovery.py +0 -0
  16. {python_linkplay-0.1.2 → python_linkplay-0.1.3}/src/linkplay/endpoint.py +0 -0
  17. {python_linkplay-0.1.2 → python_linkplay-0.1.3}/src/linkplay/exceptions.py +0 -0
  18. {python_linkplay-0.1.2 → python_linkplay-0.1.3}/src/linkplay/utils.py +0 -0
  19. {python_linkplay-0.1.2 → python_linkplay-0.1.3}/src/python_linkplay.egg-info/SOURCES.txt +0 -0
  20. {python_linkplay-0.1.2 → python_linkplay-0.1.3}/src/python_linkplay.egg-info/dependency_links.txt +0 -0
  21. {python_linkplay-0.1.2 → python_linkplay-0.1.3}/src/python_linkplay.egg-info/not-zip-safe +0 -0
  22. {python_linkplay-0.1.2 → python_linkplay-0.1.3}/src/python_linkplay.egg-info/requires.txt +0 -0
  23. {python_linkplay-0.1.2 → python_linkplay-0.1.3}/src/python_linkplay.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
- Metadata-Version: 2.1
1
+ Metadata-Version: 2.2
2
2
  Name: python_linkplay
3
- Version: 0.1.2
3
+ Version: 0.1.3
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.1.3'
@@ -69,13 +69,23 @@ class LinkPlayDevice:
69
69
  playing_modes.insert(0, PlayingMode.NETWORK) # always supported
70
70
  return playing_modes
71
71
 
72
+ @property
73
+ def mac(self) -> str | None:
74
+ """Returns the mac address."""
75
+ mac = self.properties.get(DeviceAttribute.ETH_MAC_ADDRESS)
76
+ if mac == "00:00:00:00:00:00" or mac is None:
77
+ mac = self.properties.get(DeviceAttribute.STA_MAC_ADDRESS)
78
+ if mac == "00:00:00:00:00:00" or mac is None:
79
+ mac = self.properties.get(DeviceAttribute.MAC_ADDRESS)
80
+ return mac
81
+
72
82
  @property
73
83
  def eth(self) -> str | None:
74
84
  """Returns the ethernet address."""
75
85
  eth = self.properties.get(DeviceAttribute.ETH2)
76
- if eth == "0.0.0.0" or eth is None:
86
+ if eth == "0.0.0.0" or eth == "" or eth is None:
77
87
  eth = self.properties.get(DeviceAttribute.ETH0)
78
- if eth == "0.0.0.0" or eth is None:
88
+ if eth == "0.0.0.0" or eth == "" or eth is None:
79
89
  eth = self.properties.get(DeviceAttribute.APCLI0)
80
90
  return eth
81
91
 
@@ -1,6 +1,6 @@
1
- Metadata-Version: 2.1
1
+ Metadata-Version: 2.2
2
2
  Name: python_linkplay
3
- Version: 0.1.2
3
+ Version: 0.1.3
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.1.2'
File without changes