Skip to content

Commit

Permalink
Merge pull request #94 from Olen/debugbars
Browse files Browse the repository at this point in the history
Remove debug and release
  • Loading branch information
Olen authored Jan 4, 2024
2 parents 643552d + 3f7024b commit 0bfce43
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "flower-card",
"version": "2024.1.0-beta11",
"version": "2024.1.1",
"description": "Custom flower card for https://github.com/Olen/homeassistant-plant",
"keywords": [
"home-assistant",
Expand Down
10 changes: 5 additions & 5 deletions src/utils/attributes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,11 +87,11 @@ export const renderAttribute = (card: FlowerCard, attr: DisplayedAttribute) => {
const label = attr.name === 'dli' ? '<math style="display: inline-grid;" xmlns="http://www.w3.org/1998/Math/MathML"><mrow><mfrac><mrow><mn>mol</mn></mrow><mrow><mn>d</mn><mn>⋅</mn><msup><mn>m</mn><mn>2</mn></msup></mrow></mfrac></mrow></math>' : unitTooltip
const attributeCssClass = `attribute tooltip ${card.config.display_type === DisplayType.Compact ? 'width-100' : ''}`;

console.info(
`%c FLOWER-CARD %c Attr: ${attr.name} Val: ${val} Max: ${max} Min: ${min} Available: ${aval}`,
'color: cyan; background: black; font-weight: bold;',
'color: darkblue; background: white; font-weight: bold;'
);
// console.debug(
// `%c FLOWER-CARD %c Attr: ${attr.name} Val: ${val} (${typeof(val)}), Max: ${max} (${typeof(max)}), Min: ${min} (${typeof(min)}), Available: ${aval}`,
// 'color: cyan; background: black; font-weight: bold;',
// 'color: darkblue; background: white; font-weight: bold;'
// );
return html`
<div class="${attributeCssClass}" @click="${() => moreInfo(card, attr.sensor)}">
<div class="tip" style="text-align:center;">${unsafeHTML(toolTipText)}</div>
Expand Down

0 comments on commit 0bfce43

Please # to comment.