Skip to content

Commit

Permalink
Fix Wave Enhance battery sensor
Browse files Browse the repository at this point in the history
  • Loading branch information
LaStrada committed Jan 2, 2025
1 parent 3a66e1c commit 6ec6bf2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion airthings_ble/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -785,7 +785,9 @@ async def _wave_enhance_sensor_data(
new_values: dict[str, float | str | None] = {}

if (bat_data := command_sensor_data.get("BAT")) is not None:
new_values["battery"] = device.model.battery_percentage(float(bat_data))
new_values["battery"] = device.model.battery_percentage(
float(bat_data) / 1000.0
)

if (lux := command_sensor_data.get("LUX")) is not None:
new_values["lux"] = lux
Expand Down

0 comments on commit 6ec6bf2

Please sign in to comment.