Skip to content

Commit b9426f3

Browse files
authored
Merge pull request #40 from SNoof85/style-tag
Style tag
2 parents 0b11bd2 + 66a0033 commit b9426f3

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ Add it as a custom card to your lovelace : `'custom:tempometer-gauge-card'`.
2828
| `entity_min` | string | The entity that define the minimum reached. Can be followed by an attribute to track `entity.attribute)` (you have to create this entity, the card will not compute it !) |
2929
| `entity_max` | string | The entity that define the maximum reached. Can be followed by an attribute to track `entity.attribute)` (you have to create this entity, the card will not compute it !) |
3030
| `title` | string | Card title to show. |
31-
| `style` | string | Set this to `thermometer`, `humidity` or `custom` to change icons. (Default will be barometer theme, custom will need icon1, icon2, icon3 !) |
31+
| `card_style` | string | Set this to `thermometer`, `humidity` or `custom` to change icons. (Default will be barometer theme, custom will need icon1, icon2, icon3 !) |
3232
| `measurement` | string | Custom unit of measurement |
3333
| `icon1` | string | Icon on left side in custom style. |
3434
| `icon2` | string | Icon on center in custom style. |

tempometer-gauge-card.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
console.info(`%c TEMPOMETER-CARD \n%c v1.31 `, 'color: orange; font-weight: bold; background: black', 'color: white; font-weight: bold; background: dimgray');
1+
console.info(`%c TEMPOMETER-CARD \n%c v1.4-beta.1`, 'color: orange; font-weight: bold; background: black', 'color: white; font-weight: bold; background: dimgray');
22
class TempometerGaugeCard extends HTMLElement {
33
constructor() {
44
super();
@@ -47,7 +47,7 @@ class TempometerGaugeCard extends HTMLElement {
4747
var icon_color = "var(--paper-item-icon-color)";
4848
}
4949

50-
let card_style = cardConfig.style;
50+
let card_style = cardConfig.card_style;
5151
const card = document.createElement('ha-card');
5252
const content = document.createElement('div');
5353
const style = document.createElement('style');

0 commit comments

Comments
 (0)