purifier-card 2.1.2 → 2.2.0

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.2",
3
+ "version": "2.2.0",
4
4
  "description": "Air Purifier card for Home Assistant Lovelace UI",
5
5
  "main": "dist/purifier-card.js",
6
6
  "scripts": {
package/rollup.config.js CHANGED
@@ -48,9 +48,7 @@ export default {
48
48
  ],
49
49
  extract: false,
50
50
  }),
51
- postcssLit({
52
- importPackage: 'lit-element',
53
- }),
51
+ postcssLit(),
54
52
  image(),
55
53
  IS_DEV && serve(serverOptions),
56
54
  !IS_DEV && minifyLiterals(),
package/src/localize.js CHANGED
@@ -14,6 +14,7 @@ import * as de from './translations/de.json';
14
14
  import * as ca from './translations/ca.json';
15
15
  import * as ru from './translations/ru.json';
16
16
  import * as it from './translations/it.json';
17
+ import * as cs from './translations/cs.json';
17
18
 
18
19
  var languages = {
19
20
  en,
@@ -29,6 +30,7 @@ var languages = {
29
30
  ca,
30
31
  ru,
31
32
  it,
33
+ cs,
32
34
  };
33
35
 
34
36
  const DEFAULT_LANG = 'en';
@@ -325,6 +325,7 @@ class PurifierCard extends LitElement {
325
325
  hass=${this.hass}
326
326
  template=${value_template}
327
327
  value=${state}
328
+ variables=${{ value: state }}
328
329
  ></ha-template>
329
330
  `;
330
331
 
package/src/styles.css CHANGED
@@ -23,7 +23,6 @@ ha-card {
23
23
  flex: 1;
24
24
  position: relative;
25
25
  padding: 0px;
26
- overflow: hidden;
27
26
  }
28
27
 
29
28
  .fill-gap {
@@ -32,7 +31,6 @@ ha-card {
32
31
 
33
32
  .preview {
34
33
  background-color: var(--pc-background);
35
- overflow: hidden;
36
34
  position: relative;
37
35
  }
38
36
 
@@ -0,0 +1,40 @@
1
+ {
2
+ "common": {
3
+ "name": "Karta čističky",
4
+ "description": "Karta čističky Vám umožní ovládat Vaši chytrou čističku.",
5
+ "not_available": "Entita je nedostupná",
6
+ "toggle_power": "Zapnout/vypnout"
7
+ },
8
+ "state": {
9
+ "on": "Zapnuto",
10
+ "off": "Vypnuto"
11
+ },
12
+ "preset_mode": {
13
+ "Auto": "Automatický",
14
+ "Silent": "Noční",
15
+ "Favorite": "Manuální",
16
+ "Fan": "Větrák"
17
+ },
18
+ "error": {
19
+ "missing_entity": "Je vyžadováno specifikování entity!"
20
+ },
21
+ "warning": {
22
+ "actions_array": "VAROVÁNÍ: 'actions' je přejmenováno na 'shortcuts'"
23
+ },
24
+ "editor": {
25
+ "entity": "Entity (povinné)",
26
+ "compact_view": "Kompaktní zobrazení",
27
+ "compact_view_aria_label_on": "Zapnout kompaktní zobrazení",
28
+ "compact_view_aria_label_off": "Vypnout kompaktní zobrazení",
29
+ "show_name": "Zobrazit název",
30
+ "show_name_aria_label_on": "Zapnout zobrazení názvu",
31
+ "show_name_aria_label_off": "Vypnout zobrazení názvu",
32
+ "show_state": "Zobrazit stav",
33
+ "show_state_aria_label_on": "Zapnout zobrazení stavu",
34
+ "show_state_aria_label_off": "Vypnout zobrazení stavu",
35
+ "show_toolbar": "Zobrazit lištu",
36
+ "show_toolbar_aria_label_on": "Zapnout zobrazení lišty",
37
+ "show_toolbar_aria_label_off": "Vypnout zobrazení lišty",
38
+ "code_only_note": "Poznámka: Nastavení akcí a statistik je dostupné pouze v editoru kódu."
39
+ }
40
+ }