mirror of
https://github.com/hassio-addons/addon-mopidy.git
synced 2025-05-05 12:01:52 +00:00
🔨 Re-branding
This commit is contained in:
parent
3067566f07
commit
02fe101089
16 changed files with 30 additions and 30 deletions
|
@ -29,7 +29,7 @@ function authenticate()
|
|||
return true
|
||||
end
|
||||
|
||||
--- HTTP request against Hassio API
|
||||
--- HTTP request against the Supervisor API
|
||||
local httpc = http.new()
|
||||
local res, err = httpc:request_uri("http://hassio/auth", {
|
||||
method = "POST",
|
||||
|
@ -44,13 +44,13 @@ function authenticate()
|
|||
|
||||
--- Error during API request
|
||||
if err then
|
||||
ngx.log(ngx.WARN, "Error during Hassio user authentication.", err)
|
||||
ngx.log(ngx.WARN, "Error during Home Assistant user authentication.", err)
|
||||
return false
|
||||
end
|
||||
|
||||
--- No result? Something went wrong...
|
||||
if not res then
|
||||
ngx.log(ngx.WARN, "Error during Hassio user authentication.")
|
||||
ngx.log(ngx.WARN, "Error during Home Assistant user authentication.")
|
||||
return false
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue