Current air quality index returns a long decimal value when anything other than "20". This can be problematic when using the air quality index with custom cards such as "purifier card". This change converts the returned air quality index to an integer which is then rounded to 1 decimal place.
Disregard this pull request. Further testing reveals some values return "ValueError: invalid literal for int() with base 10: ". Creating new pull request to solve this problem.
Current air quality index returns a long decimal value when anything other than "20". This can be problematic when using the air quality index with custom cards such as "purifier card". This change converts the returned air quality index to an integer which is then rounded to 1 decimal place.
Prior to Rounding:
With Rounding: