Logs like this ?
I don’t know if all these logs are related to wiser component integration…
,2021-06-14 13:18:48 WARNING (MainThread) [homeassistant.util.async_] Detected I/O inside the event loop. This is causing stability issues. Please report issue to the custom component author for wisersmart doing I/O at custom_components/wisersmart/config_flow.py, line 51: self.wiserSmart = wiserSmart(ip, user, password)
,2021-06-14 13:18:48 ERROR (MainThread) [aiohttp.server] Error handling request
,Traceback (most recent call last):
, File “/usr/local/lib/python3.8/site-packages/aiohttp/web_protocol.py”, line 422, in _handle_request
, resp = await self._request_handler(request)
, File “/usr/local/lib/python3.8/site-packages/aiohttp/web_app.py”, line 499, in _handle
, resp = await handler(request)
, File “/usr/local/lib/python3.8/site-packages/aiohttp/web_middlewares.py”, line 119, in impl
, return await handler(request)
, File “/usr/src/homeassistant/homeassistant/components/http/security_filter.py”, line 56, in security_filter_middleware
, return await handler(request)
, File “/usr/src/homeassistant/homeassistant/components/http/request_context.py”, line 18, in request_context_middleware
, return await handler(request)
, File “/usr/src/homeassistant/homeassistant/components/http/ban.py”, line 74, in ban_middleware
, return await handler(request)
, File “/usr/src/homeassistant/homeassistant/components/http/auth.py”, line 135, in auth_middleware
, return await handler(request)
, File “/usr/src/homeassistant/homeassistant/components/http/view.py”, line 131, in handle
, result = await result
, File “/usr/src/homeassistant/homeassistant/components/config/config_entries.py”, line 155, in post
, return await super().post(request, flow_id)
, File “/usr/src/homeassistant/homeassistant/components/http/data_validator.py”, line 63, in wrapper
, result = await method(view, request, *args, **kwargs)
, File “/usr/src/homeassistant/homeassistant/helpers/data_entry_flow.py”, line 109, in post
, result = await self._flow_mgr.async_configure(flow_id, data)
, File “/usr/src/homeassistant/homeassistant/data_entry_flow.py”, line 199, 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 257, in _async_handle_step
, result: FlowResult = await getattr(flow, method)(user_input)
, File “/config/custom_components/wisersmart/config_flow.py”, line 75, in async_step_user
, device = await self._test_connection(
, File “/config/custom_components/wisersmart/config_flow.py”, line 51, in _test_connection
, self.wiserSmart = wiserSmart(ip, user, password)
, File “/usr/local/lib/python3.8/site-packages/wiserSmartAPI/wiserSmart.py”, line 103, in init
, self.refreshData() # Issue first refresh in init
, File “/usr/local/lib/python3.8/site-packages/wiserSmartAPI/wiserSmart.py”, line 169, in refreshData
, self.wiserControllerData = self.sendPostRequest(WISERSMARTSYSTEM, systemData)
, File “/usr/local/lib/python3.8/site-packages/wiserSmartAPI/wiserSmart.py”, line 135, in sendPostRequest
, resp = requests.post(
, File “/usr/local/lib/python3.8/site-packages/requests/api.py”, line 119, in post
, return request(‘post’, url, data=data, json=json, **kwargs)
, File “/usr/local/lib/python3.8/site-packages/requests/api.py”, line 61, in request
, return session.request(method=method, url=url, **kwargs)
, File “/usr/local/lib/python3.8/site-packages/requests/sessions.py”, line 542, in request
, resp = self.send(prep, **send_kwargs)
, File “/usr/local/lib/python3.8/site-packages/requests/sessions.py”, line 655, in send
, r = adapter.send(request, **kwargs)
, File “/usr/local/lib/python3.8/site-packages/requests/adapters.py”, line 439, in send
, resp = conn.urlopen(
, File “/usr/local/lib/python3.8/site-packages/urllib3/connectionpool.py”, line 699, in urlopen
, httplib_response = self._make_request(
, File “/usr/local/lib/python3.8/site-packages/urllib3/connectionpool.py”, line 394, in _make_request
, conn.request(method, url, **httplib_request_kw)
, File “/usr/local/lib/python3.8/site-packages/urllib3/connection.py”, line 234, in request
, super(HTTPConnection, self).request(method, url, body=body, headers=headers)
, File “/usr/local/lib/python3.8/http/client.py”, line 1252, in request
, self._send_request(method, url, body, headers, encode_chunked)
, File “/usr/local/lib/python3.8/http/client.py”, line 1263, in send_request
, self.putrequest(method, url, **skips)
, File “/usr/local/lib/python3.8/site-packages/urllib3/connection.py”, line 214, in putrequest
, return HTTPConnection.putrequest(self, method, url, *args, **kwargs)
, File "/usr/src/homeassistant/homeassistant/util/async.py", line 151, in protected_loop_func
, check_loop()
, File "/usr/src/homeassistant/homeassistant/util/async.py", line 140, in check_loop
, raise RuntimeError(
,RuntimeError: I/O must be done in the executor; Use await hass.async_add_executor_job()
at custom_components/wisersmart/config_flow.py, line 51: self.wiserSmart = wiserSmart(ip, user, password)
,