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;