Skip to content

Commit

Permalink
Merge pull request #93 from Olen/debugbars
Browse files Browse the repository at this point in the history
Add types 6
  • Loading branch information
Olen authored Jan 3, 2024
2 parents 926b3ba + 98d262f commit dcd2d75
Show file tree
Hide file tree
Showing 2 changed files with 7 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.1.0-beta10",
"version": "2024.1.0-beta11",
"description": "Custom flower card for https://github.com/Olen/homeassistant-plant",
"keywords": [
"home-assistant",
Expand Down
8 changes: 6 additions & 2 deletions src/utils/attributes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,12 @@ export const renderAttributes = (card: FlowerCard): TemplateResult[] => {
let { max, min, current, icon, sensor, unit_of_measurement } = result[elem];
max = Number(max);
min = Number(min);
limits[`max_${elem}`] = { nmax, nmin };
curr[elem] = Number(current);
current = Number(current);
icon = String(icon);
sensor = String(sensor);
unit_of_measurement = String(unit_of_measurement);
limits[`max_${elem}`] = { max, min };
curr[elem] = current;
icons[elem] = icon;
sensors[elem] = sensor;
uomt[elem] = unit_of_measurement;
Expand Down

0 comments on commit dcd2d75

Please # to comment.