audiconnect / audi_connect_ha

Adds an audi connect integration to home assistant
MIT License
224 stars 98 forks source link

"State of Charge" is returning float #410

Closed coreywillwhat closed 4 months ago

coreywillwhat commented 4 months ago

Describe the bug The sensor in HA for "State of Charge" is always returning a float. Example: 60.0%

Expected behavior Looking at the data from the API, an int is always returned for "State of Charge". There is no reason to convert to float. Expected value: 60%

Screenshots image

Your Vehicle Details Model: Q5 Year: 2021 Type (ICE/PHEV/BEV): Hybrid

Kolbi commented 4 months ago

Then maybe we should also change https://github.com/audiconnect/audi_connect_ha/pull/405/ as we do the same.

Kolbi commented 4 months ago

Please check: https://github.com/audiconnect/audi_connect_ha/pull/411