purifier-card 2.1.1 → 2.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "purifier-card",
3
- "version": "2.1.1",
3
+ "version": "2.1.2",
4
4
  "description": "Air Purifier card for Home Assistant Lovelace UI",
5
5
  "main": "dist/purifier-card.js",
6
6
  "scripts": {
@@ -50,6 +50,10 @@
50
50
  "rollup-plugin-terser": "^7.0.2",
51
51
  "semantic-release": "^17.3.7"
52
52
  },
53
+ "browserslist": [
54
+ "last 2 versions",
55
+ "not dead"
56
+ ],
53
57
  "husky": {
54
58
  "hooks": {
55
59
  "pre-commit": "lint-staged"
@@ -261,7 +261,7 @@ class PurifierCard extends LitElement {
261
261
  ${this.renderAQI()}
262
262
  </div>
263
263
  <div class="slider-value">
264
- ${percentage}%
264
+ ${percentage ? `${percentage}%` : nothing}
265
265
  </div>
266
266
  </div>
267
267
  </div>