Skip to content

Commit

Permalink
updated threshold for financial support
Browse files Browse the repository at this point in the history
  • Loading branch information
balmli committed Dec 30, 2023
1 parent fed6a3a commit 550df0b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions lib/PriceFetcher.ts
Original file line number Diff line number Diff line change
Expand Up @@ -202,8 +202,8 @@ export class PriceFetcher extends EventEmitter {
private adjustFinancialSupport(prices: NordpoolPrices): void {
if (this.priceFetcherOptions.adjustFinancialSupport) {
for (const price of prices) {
if (price.price > 0.7) {
price.price = Math.round((0.7 + (price.price - 0.7) * 0.1) * 10000000) / 10000000;
if (price.price > 0.73) {
price.price = Math.round((0.73 + (price.price - 0.73) * 0.1) * 10000000) / 10000000;
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@balmli/homey-utility-prices",
"version": "1.5.0",
"version": "1.5.1",
"description": "Price utility for Homey apps",
"main": "dist/index.js",
"types": "dist/index.d.ts",
Expand Down

0 comments on commit 550df0b

Please sign in to comment.