Skip to content

Commit

Permalink
Update doc for deprecated auth (#49)
Browse files Browse the repository at this point in the history
  • Loading branch information
SanterreJo committed Apr 12, 2024
1 parent eb55ff7 commit d5b344b
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 4 deletions.
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
⚠️ Hilo a retiré la méthode de connexion par nom d'utilisateur et mot de passe à partir du 10 avril 2024. Le plugin ne fonctionnera plus jusqu'à ce qu'une nouvelle version soit publiée ⚠️

⚠️ Hilo deprecated the username/password login method as of April 10th 2024. The plugin will no longer work until a new version is released ⚠️


# homebridge-hilo
[![verified-by-homebridge](https://badgen.net/badge/homebridge/verified/purple)](https://github.com/homebridge/homebridge/wiki/Verified-Plugins)
[![npm-version](https://badgen.net/npm/v/homebridge-hilo)](https://www.npmjs.com/package/homebridge-hilo)
Expand Down
13 changes: 9 additions & 4 deletions src/hiloApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -193,8 +193,13 @@ const authInterceptor = async (config: AxiosRequestConfig) => {

hiloApi.interceptors.request.use(authInterceptor);

const unableToLogin = (e: unknown) =>
getLogger().error(
"Unable to login",
axios.isAxiosError(e) ? e.response?.data : e
const unableToLogin = (e: unknown) => {
const logger = getLogger();
logger.error("Unable to login", axios.isAxiosError(e) ? e.response?.data : e);
logger.error(
"Hilo deprecated the username/password login method as of April 10th 2024. The plugin will no longer work until a new version is released"
);
logger.error(
"Hilo a retiré la méthode de connexion par nom d'utilisateur et mot de passe à partir du 10 avril 2024. Le plugin ne fonctionnera plus jusqu'à ce qu'une nouvelle version soit publiée"
);
};

0 comments on commit d5b344b

Please sign in to comment.