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

添加智能设备报错,以下只是一部分 #506

Open
a594408 opened this issue Apr 29, 2023 · 0 comments
Open

添加智能设备报错,以下只是一部分 #506

a594408 opened this issue Apr 29, 2023 · 0 comments

Comments

@a594408
Copy link

a594408 commented Apr 29, 2023

Logger: aiohttp.server
Source: custom_components/xiaomi_miot_raw/config_flow.py:129
Integration: Xiaomi MIoT (documentation, issues)
First occurred: 01:22:47 (1 occurrences)
Last logged: 01:22:47

Error handling request
Traceback (most recent call last):
File "/var/packages/HomeAssistant/target/lib/python3.11/site-packages/aiohttp/web_protocol.py", line 433, in _handle_request
resp = await request_handler(request)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/var/packages/HomeAssistant/target/lib/python3.11/site-packages/aiohttp/web_app.py", line 504, in _handle
resp = await handler(request)
^^^^^^^^^^^^^^^^^^^^^^
File "/var/packages/HomeAssistant/target/lib/python3.11/site-packages/aiohttp/web_middlewares.py", line 117, in impl
return await handler(request)
^^^^^^^^^^^^^^^^^^^^^^
File "/var/packages/HomeAssistant/target/lib/python3.11/site-packages/homeassistant/components/http/security_filter.py", line 85, in security_filter_middleware
return await handler(request)
^^^^^^^^^^^^^^^^^^^^^^
File "/var/packages/HomeAssistant/target/lib/python3.11/site-packages/homeassistant/components/http/forwarded.py", line 100, in forwarded_middleware
return await handler(request)
^^^^^^^^^^^^^^^^^^^^^^
File "/var/packages/HomeAssistant/target/lib/python3.11/site-packages/homeassistant/components/http/request_context.py", line 28, in request_context_middleware
return await handler(request)
^^^^^^^^^^^^^^^^^^^^^^
File "/var/packages/HomeAssistant/target/lib/python3.11/site-packages/homeassistant/components/http/ban.py", line 80, in ban_middleware
return await handler(request)
^^^^^^^^^^^^^^^^^^^^^^
File "/var/packages/HomeAssistant/target/lib/python3.11/site-packages/homeassistant/components/http/auth.py", line 235, in auth_middleware
return await handler(request)
^^^^^^^^^^^^^^^^^^^^^^
File "/var/packages/HomeAssistant/target/lib/python3.11/site-packages/homeassistant/components/http/view.py", line 146, in handle
result = await result
^^^^^^^^^^^^
File "/var/packages/HomeAssistant/target/lib/python3.11/site-packages/homeassistant/components/config/config_entries.py", line 241, in post
return await super().post(request, flow_id)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/var/packages/HomeAssistant/target/lib/python3.11/site-packages/homeassistant/components/http/data_validator.py", line 72, in wrapper
result = await method(view, request, data, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/var/packages/HomeAssistant/target/lib/python3.11/site-packages/homeassistant/helpers/data_entry_flow.py", line 110, in post
result = await self._flow_mgr.async_configure(flow_id, data)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/var/packages/HomeAssistant/target/lib/python3.11/site-packages/homeassistant/data_entry_flow.py", line 271, in async_configure
result = await self._async_handle_step(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/var/packages/HomeAssistant/target/lib/python3.11/site-packages/homeassistant/data_entry_flow.py", line 367, in _async_handle_step
result: FlowResult = await getattr(flow, method)(user_input)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/var/packages/HomeAssistant/home/.homeassistant/custom_components/xiaomi_miot_raw/config_flow.py", line 695, in async_step_init
return await self._steps[0]
^^^^^^^^^^^^^^^^^^^^
File "/var/packages/HomeAssistant/home/.homeassistant/custom_components/xiaomi_miot_raw/config_flow.py", line 870, in async_step_re_adapt
info = await guess_mp_from_model(self.hass, model)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/var/packages/HomeAssistant/home/.homeassistant/custom_components/xiaomi_miot_raw/config_flow.py", line 129, in guess_mp_from_model
if '.lock.' in model:
^^^^^^^^^^^^^^^^^
TypeError: argument of type 'NoneType' is not iterable
Unable to prepare setup for platform xiaomi_miot_raw.light: Platform not found (Exception importing custom_components.xiaomi_miot_raw.light).

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

1 participant