Skip to content

Commit

Permalink
Merge pull request #53 from Olen/css-label-fix
Browse files Browse the repository at this point in the history
Fix battery warning 2
  • Loading branch information
Olen authored Oct 11, 2023
2 parents 213492a + e9363fa commit e6ed8a4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 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": "2023.10.4-beta2",
"version": "2023.10.4-beta3",
"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 @@ -28,7 +28,7 @@ export const renderBattery = (config: FlowerCardConfig, hass: HomeAssistant) =>
{ threshold: -Infinity, icon: "mdi:battery-alert-variant-outline", color: "red" },
];

const { icon, color } = levels.find(({ threshold }) => state > threshold) || { "mdi:battery-alert-variant-outline", "red" };
const { icon, color } = levels.find(({ threshold }) => state > threshold) || { icon: "mdi:battery-alert-variant-outline", color: "red" };

return html`
<div class="battery tooltip">
Expand Down

0 comments on commit e6ed8a4

Please sign in to comment.