diff --git a/src/linkplay/bridge.py b/src/linkplay/bridge.py index 5c913dc..ce80d65 100644 --- a/src/linkplay/bridge.py +++ b/src/linkplay/bridge.py @@ -72,11 +72,11 @@ def playmode_support(self) -> list[PlayingMode]: @property def mac(self) -> str | None: """Returns the mac address.""" - mac = self.properties.get(DeviceAttribute.ETH_MAC) + mac = self.properties.get(DeviceAttribute.ETH_MAC_ADDRESS) if mac == "00:00:00:00:00:00" or mac is None: - mac = self.properties.get(DeviceAttribute.STA_MAC) + mac = self.properties.get(DeviceAttribute.STA_MAC_ADDRESS) if mac == "00:00:00:00:00:00" or mac is None: - mac = self.properties.get(DeviceAttribute.MAC) + mac = self.properties.get(DeviceAttribute.MAC_ADDRESS) return mac @property