Skip to content

Commit

Permalink
Merge pull request #40 from SNoof85/style-tag
Browse files Browse the repository at this point in the history
Style tag
  • Loading branch information
SNoof85 authored Jun 6, 2021
2 parents 0b11bd2 + 66a0033 commit b9426f3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ Add it as a custom card to your lovelace : `'custom:tempometer-gauge-card'`.
| `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 !) |
| `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 !) |
| `title` | string | Card title to show. |
| `style` | string | Set this to `thermometer`, `humidity` or `custom` to change icons. (Default will be barometer theme, custom will need icon1, icon2, icon3 !) |
| `card_style` | string | Set this to `thermometer`, `humidity` or `custom` to change icons. (Default will be barometer theme, custom will need icon1, icon2, icon3 !) |
| `measurement` | string | Custom unit of measurement |
| `icon1` | string | Icon on left side in custom style. |
| `icon2` | string | Icon on center in custom style. |
Expand Down
4 changes: 2 additions & 2 deletions tempometer-gauge-card.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
console.info(`%c TEMPOMETER-CARD \n%c v1.31 `, 'color: orange; font-weight: bold; background: black', 'color: white; font-weight: bold; background: dimgray');
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');
class TempometerGaugeCard extends HTMLElement {
constructor() {
super();
Expand Down Expand Up @@ -47,7 +47,7 @@ class TempometerGaugeCard extends HTMLElement {
var icon_color = "var(--paper-item-icon-color)";
}

let card_style = cardConfig.style;
let card_style = cardConfig.card_style;
const card = document.createElement('ha-card');
const content = document.createElement('div');
const style = document.createElement('style');
Expand Down

0 comments on commit b9426f3

Please sign in to comment.