Skip to content

0.3.0无法配置,点击配置无效 #1045

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
jswh1969 opened this issue Apr 28, 2025 · 5 comments
Open

0.3.0无法配置,点击配置无效 #1045

jswh1969 opened this issue Apr 28, 2025 · 5 comments
Assignees

Comments

@jswh1969
Copy link

Describe the Bug / 描述问题

新增设备后,点击配置,勾选更新设备信息,点下一步,显示错误。

Image

How to Reproduce / 复现步骤

Image

Expected Behavior / 预期结果

希望能成功配置,以前的版本都是可以的

Reproduce Time / 问题复现的时间点

2025-04-28 16:00

Home Assistant Logs / 系统日志

No response

Log Timezone / 日志时区

Asia/Shanghai

Home Assistant Core Version / Home Assistant Core 版本

2025.4.4

Home Assistant Operation System Version / Home Assistant Operation System 版本

13.0

Xiaomi Home Integration Version / 米家集成版本

v0.3.0

Additional Context / 其他说明

No response

@chliny
Copy link

chliny commented Apr 28, 2025

遇到同样问题,ha core version 同样是 2025.4.4 ,补充一下我日志里的错误堆栈:

Traceback (most recent call last):                                                                                                              
  File "/usr/local/lib/python3.13/site-packages/aiohttp/web_protocol.py", line 480, in _handle_request                                          
    resp = await request_handler(request)                                                                                                       
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^                                                                                                       
  File "/usr/local/lib/python3.13/site-packages/aiohttp/web_app.py", line 569, in _handle                                                       
    return await handler(request)                                                                                                               
           ^^^^^^^^^^^^^^^^^^^^^^                                                                                                               
  File "/usr/local/lib/python3.13/site-packages/aiohttp/web_middlewares.py", line 117, in impl                                                  
    return await handler(request)                                                                                                               
           ^^^^^^^^^^^^^^^^^^^^^^                                                                                                               
  File "/usr/src/homeassistant/homeassistant/components/http/security_filter.py", line 92, in security_filter_middleware                        
    return await handler(request)                                                                                                               
           ^^^^^^^^^^^^^^^^^^^^^^                                                                                                               
  File "/usr/src/homeassistant/homeassistant/components/http/forwarded.py", line 83, in forwarded_middleware                                    
    return await handler(request)                                                                                                               
           ^^^^^^^^^^^^^^^^^^^^^^                                                                                                               
  File "/usr/src/homeassistant/homeassistant/components/http/request_context.py", line 26, in request_context_middleware                        
    return await handler(request)                                                                                                               
           ^^^^^^^^^^^^^^^^^^^^^^                                                                                                               
  File "/usr/src/homeassistant/homeassistant/components/http/ban.py", line 86, in ban_middleware                                                
    return await handler(request)                                                                                                               
           ^^^^^^^^^^^^^^^^^^^^^^                                                                                                               
  File "/usr/src/homeassistant/homeassistant/components/http/auth.py", line 242, in auth_middleware                                             
    return await handler(request)                                                                                                               
           ^^^^^^^^^^^^^^^^^^^^^^                                                                                                               
  File "/usr/src/homeassistant/homeassistant/components/http/headers.py", line 32, in headers_middleware                                        
    response = await handler(request)     
 File "/usr/src/homeassistant/homeassistant/components/http/headers.py", line 32, in headers_middleware                                        
    response = await handler(request)                                                                                                           
               ^^^^^^^^^^^^^^^^^^^^^^                                                                                                           
  File "/usr/src/homeassistant/homeassistant/helpers/http.py", line 73, in handle                                                               
    result = await handler(request, **request.match_info)                                                                                       
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^                                                                                       
  File "/usr/src/homeassistant/homeassistant/components/http/decorators.py", line 81, in with_admin                                             
    return await func(self, request, *args, **kwargs)                                                                                           
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^                                                                                           
  File "/usr/src/homeassistant/homeassistant/components/config/config_entries.py", line 295, in post                                            
    return await super().post(request, flow_id)                                                                                                 
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^                                                                                                 
  File "/usr/src/homeassistant/homeassistant/components/http/data_validator.py", line 74, in wrapper                                            
    return await method(view, request, data, *args, **kwargs)                                                                                   
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^                                                                                   
  File "/usr/src/homeassistant/homeassistant/helpers/data_entry_flow.py", line 121, in post                                                     
    result = await self._flow_mgr.async_configure(flow_id, data)                                                                                
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^                                                                                
  File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 340, in async_configure                                                  
    result = await self._async_configure(flow_id, user_input)                                                                                   
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^                                                                                     File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 387, in _async_configure                                                     result = await self._async_handle_step( 
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^                                                                                                             
          flow, cur_step["step_id"], user_input   
         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^                                                                                                   
    )                                                                                                                                           
    ^                                                                                                                                            
 File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 490, in _async_handle_step                                                   result: _FlowResultT = await getattr(flow, method)(user_input)                                                                                                         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^                                                                                
File "/config/custom_components/xiaomi_home/config_flow.py", line 1399, in async_step_update_user_info                                            return await self.async_step_homes_select()                                                                                                 
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^                                                                                                   
File "/config/custom_components/xiaomi_home/config_flow.py", line 1430, in async_step_homes_select                                            
    for home_id, home_info in self._cc_home_info[
                                       ~~~~~~~~~~~~~~~~~~~ 
           'homes'][device_source].items():   
           ~~~~~~~~^^^^^^^^^^^^^^^                                                                                                             
KeyError: 'separated_shared_list'

@caideone
Copy link

重新配置出现separated_shared_list 错误

@Hanqing-Sun
Copy link

可以按照 #1026, #1030 给出的 #1024 方法解决

@nk-xx
Copy link

nk-xx commented Apr 28, 2025

重新配置出现separated_shared_list 错误

和我一样。我是回退版本了

@Oakwen
Copy link

Oakwen commented Apr 29, 2025

升级到v0.3.1,我的就可以用了。

@SusanPhevos SusanPhevos self-assigned this Apr 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants