Updated auth method
This commit is contained in:
+2
-2
@@ -109,7 +109,7 @@ function HASS(options, log) {
|
|||||||
if (socket && typeof socket.send === 'function') {
|
if (socket && typeof socket.send === 'function') {
|
||||||
socket.send(JSON.stringify({
|
socket.send(JSON.stringify({
|
||||||
type: 'auth',
|
type: 'auth',
|
||||||
api_password: pass
|
access_token: pass
|
||||||
}));
|
}));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -267,4 +267,4 @@ function HASS(options, log) {
|
|||||||
// extend the EventEmitter class using our class
|
// extend the EventEmitter class using our class
|
||||||
util.inherits(HASS, EventEmitter);
|
util.inherits(HASS, EventEmitter);
|
||||||
|
|
||||||
module.exports = HASS;
|
module.exports = HASS;
|
||||||
|
|||||||
Reference in New Issue
Block a user