Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
SanterreJo committed Apr 12, 2024
1 parent b56b818 commit 5bf1493
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
6 changes: 2 additions & 4 deletions src/hilo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,8 @@ class Hilo implements DynamicPlatformPlugin {
) {
setConfig(config as HiloConfig);
this.config = getConfig();
if (!this.config.username || !this.config.password) {
this.log.error(
"Please provide a username and password in the config.json file"
);
if (!this.config.accessToken) {
this.log.error("Please login with hilo in the plugin configuration page");
return;
}
setLogger(log);
Expand Down
2 changes: 1 addition & 1 deletion src/hiloApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ let accessToken: string | undefined;
let wsAccessToken: string | undefined;
let refreshToken: string | undefined;

const clientId = "9870f087-25f8-43b6-9cad-d4b74ce512e1";
const clientId = "1ca9f585-4a55-4085-8e30-9746a65fa561";

const authServer = "https://connexion.hiloenergie.com";

Expand Down

0 comments on commit 5bf1493

Please sign in to comment.