From a0aa7f4cb96b64288f28fb93ae10dcddcef3f676 Mon Sep 17 00:00:00 2001 From: Simon Lamon <32477463+silamon@users.noreply.github.com> Date: Tue, 7 Jan 2025 06:40:13 +0000 Subject: [PATCH] Rename fields to correct fields --- src/linkplay/bridge.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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