liuq 4 月之前
父节点
当前提交
6cbfe2c892
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      server.js

+ 2 - 1
server.js

@@ -454,7 +454,8 @@ async function handleHomeAssistantLogin(config, credentials) {
       `${targetBaseUrl}/auth/login_flow/${flowId}`,
       {
         username: credentials.username,
-        password: credentials.password
+        password: credentials.password,
+        client_id: `${targetBaseUrl}/`
       },
       {
         headers: baseHeaders,