We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 4e29bf9 + 3f4d00b commit 46ff440Copy full SHA for 46ff440
dist/air-visual-card.js
@@ -309,7 +309,8 @@ class AirVisualCard extends HTMLElement {
309
}
310
// Check if APL is an WAQI sensor (because the state is an integer). Returns 'NaN' if it is not a number
311
if (typeof hass.states[aplSensor.config] != "undefined") {
312
- if (parseInt(hass.states[aplSensor.config].state) != 'NaN') {
+ let aplParse = parseInt(hass.states[aplSensor.config].state)
313
+ if (!isNaN(aplParse)) {
314
apl = APLdescription[getAQI()];
315
} else {
316
apl = hass.states[aplSensor.config].state;
0 commit comments