Skip to content
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

添加中枢报错 无法加载配置向导: 500 Internal Server Error Server got itself in trouble #769

Open
everhopingandwaiting opened this issue Feb 18, 2025 · 1 comment

Comments

@everhopingandwaiting
Copy link

Describe the Bug / 描述问题

添加中枢报错 无法加载配置向导: 500 Internal Server Error Server got itself in trouble

How to Reproduce / 复现步骤

Image

Image

Expected Behavior / 预期结果

可以添加

Reproduce Time / 问题复现的时间点

2025-02-18 16:19

Home Assistant Logs / 系统日志

hass          | Traceback (most recent call last):
hass          |   File "/usr/local/lib/python3.13/site-packages/aiohttp/web_protocol.py", line 480, in _handle_request
hass          |     resp = await request_handler(request)
hass          |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
hass          |   File "/usr/local/lib/python3.13/site-packages/aiohttp/web_app.py", line 569, in _handle
hass          |     return await handler(request)
hass          |            ^^^^^^^^^^^^^^^^^^^^^^
hass          |   File "/usr/local/lib/python3.13/site-packages/aiohttp/web_middlewares.py", line 117, in impl
hass          |     return await handler(request)
hass          |            ^^^^^^^^^^^^^^^^^^^^^^
hass          |   File "/usr/src/homeassistant/homeassistant/components/http/security_filter.py", line 92, in security_filter_middleware
hass          |     return await handler(request)
hass          |            ^^^^^^^^^^^^^^^^^^^^^^
hass          |   File "/usr/src/homeassistant/homeassistant/components/http/forwarded.py", line 210, in forwarded_middleware
hass          |     return await handler(request)
hass          |            ^^^^^^^^^^^^^^^^^^^^^^
hass          |   File "/usr/src/homeassistant/homeassistant/components/http/request_context.py", line 26, in request_context_middleware
hass          |     return await handler(request)
hass          |            ^^^^^^^^^^^^^^^^^^^^^^
hass          |   File "/usr/src/homeassistant/homeassistant/components/http/ban.py", line 86, in ban_middleware
hass          |     return await handler(request)
hass          |            ^^^^^^^^^^^^^^^^^^^^^^
hass          |   File "/usr/src/homeassistant/homeassistant/components/http/auth.py", line 242, in auth_middleware
hass          |     return await handler(request)
hass          |            ^^^^^^^^^^^^^^^^^^^^^^
hass          |   File "/usr/src/homeassistant/homeassistant/components/http/headers.py", line 32, in headers_middleware
hass          |     response = await handler(request)
hass          |                ^^^^^^^^^^^^^^^^^^^^^^
hass          |   File "/usr/src/homeassistant/homeassistant/helpers/http.py", line 73, in handle
hass          |     result = await handler(request, **request.match_info)
hass          |              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
hass          |   File "/usr/src/homeassistant/homeassistant/components/http/decorators.py", line 81, in with_admin
hass          |     return await func(self, request, *args, **kwargs)
hass          |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
hass          |   File "/usr/src/homeassistant/homeassistant/components/http/data_validator.py", line 74, in wrapper
hass          |     return await method(view, request, data, *args, **kwargs)
hass          |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
hass          |   File "/usr/src/homeassistant/homeassistant/components/config/config_entries.py", line 182, in post
hass          |     return await self._post_impl(request, data)
hass          |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
hass          |   File "/usr/src/homeassistant/homeassistant/components/config/config_entries.py", line 189, in _post_impl
hass          |     return await super()._post_impl(request, data)
hass          |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
hass          |   File "/usr/src/homeassistant/homeassistant/helpers/data_entry_flow.py", line 83, in _post_impl
hass          |     result = await self._flow_mgr.async_init(
hass          |              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
hass          |     ...<2 lines>...
hass          |     )
hass          |     ^
hass          |   File "/usr/src/homeassistant/homeassistant/config_entries.py", line 1429, in async_init
hass          |     flow, result = await self._async_init(flow_id, handler, context, data)
hass          |                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
hass          |   File "/usr/src/homeassistant/homeassistant/config_entries.py", line 1454, in _async_init
hass          |     flow = await self.async_create_flow(handler, context=context, data=data)
hass          |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
hass          |   File "/usr/src/homeassistant/homeassistant/config_entries.py", line 1651, in async_create_flow
hass          |     handler = await _async_get_flow_handler(
hass          |               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
hass          |         self.hass, handler_key, self._hass_config
hass          |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
hass          |     )
hass          |     ^
hass          |   File "/usr/src/homeassistant/homeassistant/config_entries.py", line 3779, in _async_get_flow_handler
hass          |     await _load_integration(hass, domain, hass_config)
hass          |   File "/usr/src/homeassistant/homeassistant/config_entries.py", line 3756, in _load_integration
hass          |     await async_process_deps_reqs(hass, hass_config, integration)
hass          |   File "/usr/src/homeassistant/homeassistant/setup.py", line 581, in async_process_deps_reqs
hass          |     await requirements.async_get_integration_with_requirements(
hass          |         hass, integration.domain
hass          |     )
hass          |   File "/usr/src/homeassistant/homeassistant/requirements.py", line 54, in async_get_integration_with_requirements
hass          |     return await manager.async_get_integration_with_requirements(domain)
hass          |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
hass          |   File "/usr/src/homeassistant/homeassistant/requirements.py", line 170, in async_get_integration_with_requirements
hass          |     await future
hass          |   File "/usr/src/homeassistant/homeassistant/requirements.py", line 159, in async_get_integration_with_requirements
hass          |     await self._async_process_integration(integration, done)
hass          |   File "/usr/src/homeassistant/homeassistant/requirements.py", line 182, in _async_process_integration
hass          |     await self.async_process_requirements(
hass          |         integration.domain, integration.requirements
hass          |     )
hass          |   File "/usr/src/homeassistant/homeassistant/requirements.py", line 264, in async_process_requirements
hass          |     self._raise_for_failed_requirements(name, missing)
hass          |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^
hass          |   File "/usr/src/homeassistant/homeassistant/requirements.py", line 292, in _raise_for_failed_requirements
hass          |     raise RequirementsNotFound(integration, [req])
hass          | homeassistant.requirements.RequirementsNotFound: Requirements for xiaomi_home not found: ['paho-mqtt<2.0.0'].


Log Timezone / 日志时区

Asia/Shanghai

Home Assistant Core Version / Home Assistant Core 版本

2025.3.0.dev202502180228

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

20250218.0.dev

Xiaomi Home Integration Version / 米家集成版本

v0.1.5b2

Additional Context / 其他说明

No response

@liming-rong
Copy link

liming-rong commented Feb 21, 2025

/config/custom_components/ha_xiaomi_home/custom_components/xiaomi_home/manifest.json

改成 "paho-mqtt<3.0.0" 可以解决.
但paho-mqtt 1.x 和2.x 可能会有 兼容问题,想彻底解决需要把项目代码升级到2.x,修改掉不兼容的api(如果有)。

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

2 participants