Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
silamon authored Nov 8, 2024
1 parent 6fdf6b8 commit 4db8733
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/linkplay/bridge.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,11 +70,8 @@ def playmode_support(self) -> list[PlayingMode]:
@property
def eth(self) -> str:
"""Returns the ethernet address."""
return (
self.properties[DeviceAttribute.ETH2]
if DeviceAttribute.ETH_DHCP in self.properties
else self.properties[DeviceAttribute.APCLI0]
)
eth2 = self.properties.get(DeviceAttribute.ETH2)
return eth2 if eth2 else self.properties.get(DeviceAttribute.APCLI0)

class LinkPlayPlayer:
"""Represents a LinkPlay player."""
Expand Down

0 comments on commit 4db8733

Please sign in to comment.