Skip to content

Commit

Permalink
Fixup empty IP address accessed (#74)
Browse files Browse the repository at this point in the history
  • Loading branch information
heinzma authored Jan 15, 2025
1 parent a0aa7f4 commit 6566fa0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/linkplay/bridge.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,9 +83,9 @@ def mac(self) -> str | None:
def eth(self) -> str | None:
"""Returns the ethernet address."""
eth = self.properties.get(DeviceAttribute.ETH2)
if eth == "0.0.0.0" or eth is None:
if eth == "0.0.0.0" or eth == "" or eth is None:
eth = self.properties.get(DeviceAttribute.ETH0)
if eth == "0.0.0.0" or eth is None:
if eth == "0.0.0.0" or eth == "" or eth is None:
eth = self.properties.get(DeviceAttribute.APCLI0)
return eth

Expand Down

0 comments on commit 6566fa0

Please sign in to comment.