Skip to content

Commit

Permalink
cast odometer to float instead of int (#19)
Browse files Browse the repository at this point in the history
  • Loading branch information
wtadler authored May 25, 2022
1 parent d62d79b commit 199dfa5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion custom_components/leafspy/device_tracker.py
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ def _parse_see_args(message):
'attributes': {
'amp_hours': float(message['AHr']),
'trip': int(message['Trip']),
'odometer': int(message['Odo']),
'odometer': float(message['Odo']),
'battery_temperature': float(message['BatTemp']),
'battery_health': float(message['SOH']),
'outside_temperature': float(message['Amb']),
Expand Down

0 comments on commit 199dfa5

Please sign in to comment.