We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0c83bb3 commit f0058e6Copy full SHA for f0058e6
src/linkplay/bridge.py
@@ -69,6 +69,16 @@ def playmode_support(self) -> list[PlayingMode]:
69
playing_modes.insert(0, PlayingMode.NETWORK) # always supported
70
return playing_modes
71
72
+ @property
73
+ def mac(self) -> str | None:
74
+ """Returns the mac address."""
75
+ mac = self.properties.get(DeviceAttribute.ETH_MAC)
76
+ if mac == "00:00:00:00:00:00" or mac is None:
77
+ mac = self.properties.get(DeviceAttribute.STA_MAC)
78
79
+ mac = self.properties.get(DeviceAttribute.MAC)
80
+ return mac
81
+
82
@property
83
def eth(self) -> str | None:
84
"""Returns the ethernet address."""
0 commit comments