Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
LaStrada committed Jan 1, 2025
1 parent 2247a44 commit c6d3a7d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions airthings_ble/device_type.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,8 @@ def product_name(self) -> str:
def battery_percentage(self, voltage: float) -> int:
"""Calculate battery percentage based on voltage."""
if self == AirthingsDeviceType.WAVE_MINI:
return round(self._two_batteries(voltage))
return round(self._three_batteries(voltage))
return round(self._three_batteries(voltage))
return round(self._two_batteries(voltage))

# pylint: disable=too-many-return-statements
def _two_batteries(self, voltage: float) -> float:
Expand Down

0 comments on commit c6d3a7d

Please sign in to comment.