Skip to content

Commit

Permalink
Fix #75
Browse files Browse the repository at this point in the history
  • Loading branch information
zachcheatham committed Aug 4, 2023
1 parent 27b4bcc commit cade89d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions custom_components/omada/api/clients.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,12 +94,12 @@ def channel(self) -> int | None:
return self._raw.get("channel")

@property
def rx_rate(self) -> int | None:
return self._raw.get("rxRate")
def rx_rate(self) -> int:
return self._raw.get("rxRate", 0)

@property
def tx_rate(self) -> int | None:
return self._raw.get("txRate")
def tx_rate(self) -> int:
return self._raw.get("txRate", 0)

@property
def power_save(self) -> bool:
Expand Down

0 comments on commit cade89d

Please sign in to comment.