jesserockz / ha-leafspy

A Home Assistant integration to receive live data sent from the LeafSpy app
MIT License
24 stars 8 forks source link

Cast odometer to float instead of int #19

Closed wtadler closed 2 years ago

wtadler commented 2 years ago

For me, LeafSpy reports the odometer as a string representation of a float. Previously, ha-leafspy was passing that string representation into int(), which doesn't work and was causing an error (#15). This passes the string into float() instead, solving the issue.