Skip to content

Commit a0aa7f4

Browse files
committed
Rename fields to correct fields
1 parent f0058e6 commit a0aa7f4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/linkplay/bridge.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,11 +72,11 @@ def playmode_support(self) -> list[PlayingMode]:
7272
@property
7373
def mac(self) -> str | None:
7474
"""Returns the mac address."""
75-
mac = self.properties.get(DeviceAttribute.ETH_MAC)
75+
mac = self.properties.get(DeviceAttribute.ETH_MAC_ADDRESS)
7676
if mac == "00:00:00:00:00:00" or mac is None:
77-
mac = self.properties.get(DeviceAttribute.STA_MAC)
77+
mac = self.properties.get(DeviceAttribute.STA_MAC_ADDRESS)
7878
if mac == "00:00:00:00:00:00" or mac is None:
79-
mac = self.properties.get(DeviceAttribute.MAC)
79+
mac = self.properties.get(DeviceAttribute.MAC_ADDRESS)
8080
return mac
8181

8282
@property

0 commit comments

Comments
 (0)