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.
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 intofloat()
instead, solving the issue.