-
Notifications
You must be signed in to change notification settings - Fork 490
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix the Renpho Air Purifier AQI sensor, since AQI is deprecated. #1832
Conversation
Where are you seeing that aqi device class is deprecated? It is not mentioned in the documentation, and there is no blog post about it. |
HA Also complains about it, and this fixes it. |
|
From the sensor classes, AQI according to the docs has no units defined..
but it wants an int/float, not a string. |
I see they have added a list of non-numeric device classes, and aqi is not among them. I guess it does make sense, since the I in AQI stands for index, so it should really be numeric, even though many devices have something labelled AQI which is a good/fair/poor categorisation like this. |
This fixes the deprecated AQI sensor setting in the Renpho Air Purifier, changing it from AQI to enum with a string mapping.
I've tested this against my purifiers, and it works.