Skip to content

Commit

Permalink
replace https
Browse files Browse the repository at this point in the history
  • Loading branch information
TA2k committed Dec 15, 2023
1 parent 3167290 commit 9e170a6
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions main.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ class Tedee extends utils.Adapter {
this.log.info(`Getting devices from bridge ${this.config.bridgeip}`);
await this.requestClient({
method: 'get',
url: 'https://' + this.config.bridgeip + '/' + this.apiVersion + '/bridge',
url: 'http://' + this.config.bridgeip + '/' + this.apiVersion + '/bridge',
headers: {
accept: '*/*',
api_token: this.hashedAPIKey(),
Expand All @@ -92,7 +92,7 @@ class Tedee extends utils.Adapter {
});
await this.requestClient({
method: 'get',
url: 'https://' + this.config.bridgeip + '/' + this.apiVersion + '/lock',
url: 'http://' + this.config.bridgeip + '/' + this.apiVersion + '/lock',
headers: {
accept: '*/*',
api_token: this.hashedAPIKey(),
Expand Down Expand Up @@ -178,7 +178,7 @@ class Tedee extends utils.Adapter {
//receive list of webhooks
await this.requestClient({
methode: 'get',
url: 'https://' + this.config.bridgeip + '/' + this.apiVersion + '/callback',
url: 'http://' + this.config.bridgeip + '/' + this.apiVersion + '/callback',
headers: {
accept: '*/*',
api_token: this.hashedAPIKey(),
Expand All @@ -194,7 +194,7 @@ class Tedee extends utils.Adapter {
//register webhook
await this.requestClient({
method: 'post',
url: 'https://' + this.config.bridgeip + '/' + this.apiVersion + '/callback',
url: 'http://' + this.config.bridgeip + '/' + this.apiVersion + '/callback',
headers: {
accept: '*/*',
api_token: this.hashedAPIKey(),
Expand Down Expand Up @@ -226,7 +226,7 @@ class Tedee extends utils.Adapter {
async updateDevices() {
await this.requestClient({
method: 'get',
url: 'https://' + this.config.bridgeip + '/' + this.apiVersion + '/lock',
url: 'http://' + this.config.bridgeip + '/' + this.apiVersion + '/lock',
headers: {
'Content-Type': 'application/json',
api_token: this.hashedAPIKey(),
Expand Down

0 comments on commit 9e170a6

Please sign in to comment.