iKaew / hass-lifesmart-addon

LifeSmart Integration for Home Assistant
6 stars 1 forks source link

我用之前的API KEY 出现未知错误 #17

Open hellojazy opened 5 months ago

hellojazy commented 5 months ago

不知道是api的问题还是什么。 API在之前skyzhishui的插件可以正常使用 。现在新申请的api还没审核过。请帮忙看看,谢谢

Unknown error occurred

此错误来自自定义集成。

日志: custom_components.lifesmart.config_flow 来源: custom_components/lifesmart/config_flow.py:101 集成: LifeSmart (文档, 问题) 首次发生: 21:56:55 (7 全部发生) 上次记录: 22:11:49

Input validation error


File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 518, in _async_handle_step result: _FlowResultT = await getattr(flow, method)(user_input) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/config/custom_components/lifesmart/config_flow.py", line 104, in async_step_user await self.async_set_unique_id(validated["unique_id"]) ^^^^^^^^^ UnboundLocalError: cannot access local variable 'validated' where it is not associated with a value

hellojazy commented 5 months ago

看APP 三方授权 是授权通过了。但是前台就报错Unknown error occurred

iKaew commented 5 months ago

Which version that you installed? The latest version of the add-on changes to use user id with password rather than user token.

hellojazy commented 5 months ago

The latest version,It's the user password,I found in the APP that the authorization is complete,But the front desk reports an error.。 I don't know if it has anything to do with the api key, but I used the key from 2 years ago

iKaew commented 5 months ago

Look like there is an error when migrate the configuration. Can you remove the device and add it back again ?

hellojazy commented 5 months ago

重新添加中枢还是在app内重新添加设备呢?

获取 Outlook for iOShttps://aka.ms/o0ukef


发件人: Kaew @.> 发送时间: Monday, May 27, 2024 1:33:57 PM 收件人: iKaew/hass-lifesmart-addon @.> 抄送: hellojazy @.>; Author @.> 主题: Re: [iKaew/hass-lifesmart-addon] 我用之前的API KEY 出现未知错误 (Issue #17)

Look like there is an error when migrate the configuration. Can you remove the device and add it back again ?

― Reply to this email directly, view it on GitHubhttps://github.com/iKaew/hass-lifesmart-addon/issues/17#issuecomment-2132674310, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AZYDWOHW2YFKUDKUNT5U2DTZELAULAVCNFSM6AAAAABIJ2WBRSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMZSGY3TIMZRGA. You are receiving this because you authored the thread.Message ID: @.***>

iKaew commented 5 months ago

Please re-add the hub

iKaew commented 5 months ago

Is it solved your issue ?