From f0d087894979efafb8a76ce43faa40fb6fd728e8 Mon Sep 17 00:00:00 2001 From: Alex Alexandrowitz Date: Wed, 27 Mar 2019 23:33:09 +0100 Subject: [PATCH] Updated auth method --- lib/hass.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/hass.js b/lib/hass.js index 1b1ebfb..9524834 100644 --- a/lib/hass.js +++ b/lib/hass.js @@ -109,7 +109,7 @@ function HASS(options, log) { if (socket && typeof socket.send === 'function') { socket.send(JSON.stringify({ type: 'auth', - api_password: pass + access_token: pass })); } } @@ -267,4 +267,4 @@ function HASS(options, log) { // extend the EventEmitter class using our class util.inherits(HASS, EventEmitter); -module.exports = HASS; \ No newline at end of file +module.exports = HASS;