Skip to content

Commit

Permalink
Remove debug info
Browse files Browse the repository at this point in the history
  • Loading branch information
Olen committed Jul 19, 2024
1 parent 0993962 commit 0ad14d2
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 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.7.13",
"version": "2024.7.14",
"description": "Custom flower card for https://github.com/Olen/homeassistant-plant",
"keywords": [
"home-assistant",
Expand Down
2 changes: 1 addition & 1 deletion src/utils/attributes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export const renderBattery = (card: FlowerCard) => {
const { icon, color } = levels.find(({ threshold }) => state > threshold) || { icon: "mdi:battery-alert-variant-outline", color: "red" };

return html`
<div class="battery tooltip" @click="${(e: Event) => { e.stopPropagation(); console.log(e); moreInfo(card, card.config.battery_sensor)}}">
<div class="battery tooltip" @click="${(e: Event) => { e.stopPropagation(); moreInfo(card, card.config.battery_sensor)}}">
<div class="tip" style="text-align:center;">${state}%</div>
<ha-icon .icon="${icon}" style="color: ${color}"></ha-icon>
</div>
Expand Down
2 changes: 1 addition & 1 deletion src/utils/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export const getStubConfig = (hass: HomeAssistant) => {
}

export const moreInfo = (card: FlowerCard, entityId: string): void => {
console.log("Event", entityId);
// console.log("Event", entityId);
fireEvent(
card,
'hass-more-info',
Expand Down

0 comments on commit 0ad14d2

Please sign in to comment.