Skip to content

Commit

Permalink
Update octopus-switch.js
Browse files Browse the repository at this point in the history
var -> const
  • Loading branch information
ianhampton committed Nov 20, 2020
1 parent 737aa35 commit 947abe7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions octopus-switch.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ const unit = (segments_ahead <= 2) ? "hr" : "hrs";
const url = `${api_url}products/${product_code}/electricity-tariffs/${tariff_code}/standard-unit-rates/?period_from=${now}`;

async function controlSwitch(state) {
var count = 0;
var retry = 5;
const count = 0;
const retry = 5;
while (true) {
try {
if (state == "log") {
Expand Down

0 comments on commit 947abe7

Please sign in to comment.