Skip to content

Commit

Permalink
Merge pull request #68 from Spot-hinta-fi/rank-price-fix-wrong-proper…
Browse files Browse the repository at this point in the history
…ty-name

Fixed incorrect property name.
  • Loading branch information
Spot-hinta-fi authored Mar 17, 2024
2 parents 8332658 + 6a6d163 commit 847fe7e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Scripts/Shelly-Rank-and-Price.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Thank you for your support: https://www.buymeacoffee.com/spothintafi
// Supported Shelly firmwares: 1.0.3 - 1.2.3. Script version: 2024-03-03
// Supported Shelly firmwares: 1.0.3 - 1.2.3. Script version: 2024-03-17

// Region to use
let Region = "FI"; // Supported regions: DK1, DK2, EE, FI, LT, LV, NO1, NO2, NO3, NO4, NO5, SE1, SE2, SE3, SE4
Expand Down Expand Up @@ -99,7 +99,7 @@ function SetRelayStatusInShellyBasedOnHttpStatus(response, error_code, error_msg
if (response.code === 200) { SetRelayStatusInShelly(Settings, Settings.InvertedOn); return true; }
if (response.code === 400) { SetRelayStatusInShelly(Settings, Settings.InvertedOff); return true; }
}
if (Settings.BackupHours.indexOf(cHour) > -1) { SetRelayStatusInShelly(Settings, Settings.InvertedOn); return false; }
if (Settings.BackupHours.indexOf(currentHour) > -1) { SetRelayStatusInShelly(Settings, Settings.InvertedOn); return false; }
else { SetRelayStatusInShelly(Settings, Settings.InvertedOff); return false; }
}

Expand Down

0 comments on commit 847fe7e

Please sign in to comment.