Advertisement
Braakie

Local Tuya

Feb 1st, 2024
31
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 11.07 KB | None | 0 0
  1. 2024-02-02 00:42:06.667 ERROR (MainThread) [aiohttp.server] Error handling request
  2. Traceback (most recent call last):
  3.   File "/usr/local/lib/python3.11/site-packages/aiohttp/web_protocol.py", line 452, in _handle_request
  4.     resp = await request_handler(request)
  5.            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  6.   File "/usr/local/lib/python3.11/site-packages/aiohttp/web_app.py", line 543, in _handle
  7.     resp = await handler(request)
  8.            ^^^^^^^^^^^^^^^^^^^^^^
  9.   File "/usr/local/lib/python3.11/site-packages/aiohttp/web_middlewares.py", line 114, in impl
  10.     return await handler(request)
  11.            ^^^^^^^^^^^^^^^^^^^^^^
  12.   File "/usr/src/homeassistant/homeassistant/components/http/security_filter.py", line 85, in security_filter_middleware
  13.     return await handler(request)
  14.            ^^^^^^^^^^^^^^^^^^^^^^
  15.   File "/usr/src/homeassistant/homeassistant/components/http/forwarded.py", line 100, in forwarded_middleware
  16.     return await handler(request)
  17.            ^^^^^^^^^^^^^^^^^^^^^^
  18.   File "/usr/src/homeassistant/homeassistant/components/http/request_context.py", line 28, in request_context_middleware
  19.     return await handler(request)
  20.            ^^^^^^^^^^^^^^^^^^^^^^
  21.   File "/usr/src/homeassistant/homeassistant/components/http/ban.py", line 80, in ban_middleware
  22.     return await handler(request)
  23.            ^^^^^^^^^^^^^^^^^^^^^^
  24.   File "/usr/src/homeassistant/homeassistant/components/http/auth.py", line 233, in auth_middleware
  25.     return await handler(request)
  26.            ^^^^^^^^^^^^^^^^^^^^^^
  27.   File "/usr/src/homeassistant/homeassistant/components/http/headers.py", line 31, in headers_middleware
  28.     response = await handler(request)
  29.                ^^^^^^^^^^^^^^^^^^^^^^
  30.   File "/usr/src/homeassistant/homeassistant/components/http/view.py", line 149, in handle
  31.     result = await handler(request, **request.match_info)
  32.              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  33.   File "/usr/src/homeassistant/homeassistant/components/http/decorators.py", line 63, in with_admin
  34.     return await func(self, request, *args, **kwargs)
  35.            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  36.   File "/usr/src/homeassistant/homeassistant/components/config/config_entries.py", line 234, in post
  37.     return await super().post(request, flow_id)
  38.            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  39.   File "/usr/src/homeassistant/homeassistant/components/http/data_validator.py", line 72, in wrapper
  40.     result = await method(view, request, data, *args, **kwargs)
  41.              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  42.   File "/usr/src/homeassistant/homeassistant/helpers/data_entry_flow.py", line 110, in post
  43.     result = await self._flow_mgr.async_configure(flow_id, data)
  44.              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  45.   File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 320, in async_configure
  46.     result = await self._async_handle_step(
  47.              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  48.   File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 416, in _async_handle_step
  49.     result: FlowResult = await getattr(flow, method)(user_input)
  50.                          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  51.   File "/config/custom_components/localtuya/config_flow.py", line 631, in async_step_add_device
  52.     devices, fails = await setup_localtuya_devices(
  53.                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  54.   File "/config/custom_components/localtuya/config_flow.py", line 1223, in setup_localtuya_devices
  55.     dev_entites = gen_localtuya_entities(dev_data, category)
  56.                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  57.   File "/config/custom_components/localtuya/core/ha_entities/__init__.py", line 88, in gen_localtuya_entities
  58.     for ent_data in cat_data:
  59. TypeError: 'LocalTuyaEntity' object is not iterable
  60. 2024-02-02 00:42:08.204 ERROR (MainThread) [aiohttp.server] Error handling request
  61. Traceback (most recent call last):
  62.   File "/usr/local/lib/python3.11/site-packages/aiohttp/web_protocol.py", line 452, in _handle_request
  63.     resp = await request_handler(request)
  64.            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  65.   File "/usr/local/lib/python3.11/site-packages/aiohttp/web_app.py", line 543, in _handle
  66.     resp = await handler(request)
  67.            ^^^^^^^^^^^^^^^^^^^^^^
  68.   File "/usr/local/lib/python3.11/site-packages/aiohttp/web_middlewares.py", line 114, in impl
  69.     return await handler(request)
  70.            ^^^^^^^^^^^^^^^^^^^^^^
  71.   File "/usr/src/homeassistant/homeassistant/components/http/security_filter.py", line 85, in security_filter_middleware
  72.     return await handler(request)
  73.            ^^^^^^^^^^^^^^^^^^^^^^
  74.   File "/usr/src/homeassistant/homeassistant/components/http/forwarded.py", line 100, in forwarded_middleware
  75.     return await handler(request)
  76.            ^^^^^^^^^^^^^^^^^^^^^^
  77.   File "/usr/src/homeassistant/homeassistant/components/http/request_context.py", line 28, in request_context_middleware
  78.     return await handler(request)
  79.            ^^^^^^^^^^^^^^^^^^^^^^
  80.   File "/usr/src/homeassistant/homeassistant/components/http/ban.py", line 80, in ban_middleware
  81.     return await handler(request)
  82.            ^^^^^^^^^^^^^^^^^^^^^^
  83.   File "/usr/src/homeassistant/homeassistant/components/http/auth.py", line 233, in auth_middleware
  84.     return await handler(request)
  85.            ^^^^^^^^^^^^^^^^^^^^^^
  86.   File "/usr/src/homeassistant/homeassistant/components/http/headers.py", line 31, in headers_middleware
  87.     response = await handler(request)
  88.                ^^^^^^^^^^^^^^^^^^^^^^
  89.   File "/usr/src/homeassistant/homeassistant/components/http/view.py", line 149, in handle
  90.     result = await handler(request, **request.match_info)
  91.              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  92.   File "/usr/src/homeassistant/homeassistant/components/http/decorators.py", line 63, in with_admin
  93.     return await func(self, request, *args, **kwargs)
  94.            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  95.   File "/usr/src/homeassistant/homeassistant/components/config/config_entries.py", line 234, in post
  96.     return await super().post(request, flow_id)
  97.            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  98.   File "/usr/src/homeassistant/homeassistant/components/http/data_validator.py", line 72, in wrapper
  99.     result = await method(view, request, data, *args, **kwargs)
  100.              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  101.   File "/usr/src/homeassistant/homeassistant/helpers/data_entry_flow.py", line 110, in post
  102.     result = await self._flow_mgr.async_configure(flow_id, data)
  103.              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  104.   File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 320, in async_configure
  105.     result = await self._async_handle_step(
  106.              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  107.   File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 416, in _async_handle_step
  108.     result: FlowResult = await getattr(flow, method)(user_input)
  109.                          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  110.   File "/config/custom_components/localtuya/config_flow.py", line 631, in async_step_add_device
  111.     devices, fails = await setup_localtuya_devices(
  112.                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  113.   File "/config/custom_components/localtuya/config_flow.py", line 1223, in setup_localtuya_devices
  114.     dev_entites = gen_localtuya_entities(dev_data, category)
  115.                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  116.   File "/config/custom_components/localtuya/core/ha_entities/__init__.py", line 88, in gen_localtuya_entities
  117.     for ent_data in cat_data:
  118. TypeError: 'LocalTuyaEntity' object is not iterable
  119. 2024-02-02 00:42:39.102 ERROR (MainThread) [aiohttp.server] Error handling request
  120. Traceback (most recent call last):
  121.   File "/usr/local/lib/python3.11/site-packages/aiohttp/web_protocol.py", line 452, in _handle_request
  122.     resp = await request_handler(request)
  123.            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  124.   File "/usr/local/lib/python3.11/site-packages/aiohttp/web_app.py", line 543, in _handle
  125.     resp = await handler(request)
  126.            ^^^^^^^^^^^^^^^^^^^^^^
  127.   File "/usr/local/lib/python3.11/site-packages/aiohttp/web_middlewares.py", line 114, in impl
  128.     return await handler(request)
  129.            ^^^^^^^^^^^^^^^^^^^^^^
  130.   File "/usr/src/homeassistant/homeassistant/components/http/security_filter.py", line 85, in security_filter_middleware
  131.     return await handler(request)
  132.            ^^^^^^^^^^^^^^^^^^^^^^
  133.   File "/usr/src/homeassistant/homeassistant/components/http/forwarded.py", line 100, in forwarded_middleware
  134.     return await handler(request)
  135.            ^^^^^^^^^^^^^^^^^^^^^^
  136.   File "/usr/src/homeassistant/homeassistant/components/http/request_context.py", line 28, in request_context_middleware
  137.     return await handler(request)
  138.            ^^^^^^^^^^^^^^^^^^^^^^
  139.   File "/usr/src/homeassistant/homeassistant/components/http/ban.py", line 80, in ban_middleware
  140.     return await handler(request)
  141.            ^^^^^^^^^^^^^^^^^^^^^^
  142.   File "/usr/src/homeassistant/homeassistant/components/http/auth.py", line 233, in auth_middleware
  143.     return await handler(request)
  144.            ^^^^^^^^^^^^^^^^^^^^^^
  145.   File "/usr/src/homeassistant/homeassistant/components/http/headers.py", line 31, in headers_middleware
  146.     response = await handler(request)
  147.                ^^^^^^^^^^^^^^^^^^^^^^
  148.   File "/usr/src/homeassistant/homeassistant/components/http/view.py", line 149, in handle
  149.     result = await handler(request, **request.match_info)
  150.              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  151.   File "/usr/src/homeassistant/homeassistant/components/http/decorators.py", line 63, in with_admin
  152.     return await func(self, request, *args, **kwargs)
  153.            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  154.   File "/usr/src/homeassistant/homeassistant/components/config/config_entries.py", line 234, in post
  155.     return await super().post(request, flow_id)
  156.            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  157.   File "/usr/src/homeassistant/homeassistant/components/http/data_validator.py", line 72, in wrapper
  158.     result = await method(view, request, data, *args, **kwargs)
  159.              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  160.   File "/usr/src/homeassistant/homeassistant/helpers/data_entry_flow.py", line 110, in post
  161.     result = await self._flow_mgr.async_configure(flow_id, data)
  162.              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  163.   File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 316, in async_configure
  164.     result = await self._async_handle_step(
  165.              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  166.   File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 416, in _async_handle_step
  167.     result: FlowResult = await getattr(flow, method)(user_input)
  168.                          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  169.   File "/config/custom_components/localtuya/config_flow.py", line 925, in async_step_auto_configure_device
  170.     dev_data = gen_localtuya_entities(localtuya_data, category)
  171.                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  172.   File "/config/custom_components/localtuya/core/ha_entities/__init__.py", line 88, in gen_localtuya_entities
  173.     for ent_data in cat_data:
  174. TypeError: 'LocalTuyaEntity' object is not iterable
  175.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement