Skip to content

Commit

Permalink
fixing linters
Browse files Browse the repository at this point in the history
  • Loading branch information
nkrasko committed Dec 13, 2024
1 parent aef63d1 commit a3fab1b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion cloud_services/README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# Cloud Services

This category contains Enapter Blueprints which provide connection to third-party cloud services and APIs. Data exchange with them can be used for automation of energy systems: energy shifting, load balancing, energy sharing, and load shedding. It also allows users to develop advanced demand-response logic and benefit from advanced reporting and analytics.
This category contains Enapter Blueprints which provide connection to third-party cloud services and APIs. Data exchange with them can be used for automation of energy systems: energy shifting, load balancing, energy sharing, and load shedding. It also allows users to develop advanced demand-response logic and benefit from advanced reporting and analytics.
6 changes: 3 additions & 3 deletions cloud_services/electricity_maps/src/main.lua
Original file line number Diff line number Diff line change
Expand Up @@ -82,11 +82,11 @@ function get_data()
end
end

local request =
request =
http.request('GET', 'https://api.electricitymap.org/v3/power-breakdown/latest?lon=' .. lon .. '&lat=' .. lat)
request:set_header('auth-token', token)
local client = http.client({ timeout = 5 })
local response, err = client:do_request(request)
client = http.client({ timeout = 5 })
response, err = client:do_request(request)

if err then
enapter.log('Cannot do request: ' .. err, 'error')
Expand Down

0 comments on commit a3fab1b

Please # to comment.