diff --git a/lib/ha-websocket.js b/lib/ha-websocket.js index 906b4dc2ff..b5c6a19f8b 100644 --- a/lib/ha-websocket.js +++ b/lib/ha-websocket.js @@ -77,7 +77,7 @@ class HaWebsocket extends EventEmitter { // Check if user has admin privileges const user = await this.getUser(); - if (!user.is_admin) { + if (user.is_admin === false) { this.connectionState = HaWebsocket.ERROR; this.client.close(); throw new Error(