Skip to content

Commit

Permalink
Rename fields to correct fields
Browse files Browse the repository at this point in the history
  • Loading branch information
silamon committed Jan 7, 2025
1 parent f0058e6 commit a0aa7f4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/linkplay/bridge.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a0aa7f4

Please sign in to comment.