Skip to content

Commit

Permalink
[#29] [Bug] Showing 1% increase ratio instead of 100% expected
Browse files Browse the repository at this point in the history
  • Loading branch information
ssenart committed Jan 4, 2023
1 parent e4dc7c8 commit 7afee86
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 7 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,14 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [1.3.10] - 2023-01-04

## Changed
[#30](https://github.com/ssenart/lovelace-gazpar-card/issues/30): [Change] Gazpar icon has been resized.

### Fixed
[#29](https://github.com/ssenart/lovelace-gazpar-card/issues/29): [Bug] Showing 1% increase ratio instead of 100% expected.

## [1.3.9] - 2022-12-16

## Changed
Expand Down
8 changes: 4 additions & 4 deletions dist/gazpar-card.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "lovelace-gazpar-card",
"version": "1.3.9",
"version": "1.3.10-alpha.0",
"compatibleIntegrationVersion": "1.3.4",
"description": "GrDF Gazpar meter lovelace card for Home Assistant.",
"main": "index.js",
Expand Down
2 changes: 1 addition & 1 deletion src/gazpar-card.js
Original file line number Diff line number Diff line change
Expand Up @@ -428,7 +428,7 @@ export class GazparCard extends LitElement {
}
else if (currentPeriodEnergy != null && currentPeriodEnergy > 0 && previousPeriodEnergy != null && previousPeriodEnergy == 0)
{
data[i].ratio = 1
data[i].ratio = 100
}
else
{
Expand Down
2 changes: 1 addition & 1 deletion tests/attributes.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"attribution": "Data provided by GrDF",
"version": "1.3.0",
"version": "1.3.4",
"username": "toto.titi@tata.com",
"pce": "123456789101112",
"unit_of_measurement": "kWh",
Expand Down

0 comments on commit 7afee86

Please sign in to comment.