Logger: homeassistant.components.websocket_api.http.connection
Source: util/async_.py:154
Integration: Home Assistant WebSocket API (documentation, issues)
First occurred: March 8, 2022, 8:35:57 PM (10 occurrences)
Last logged: 8:49:41 AM
[548044303184] Blocking calls must be done in the executor or a separate thread; Use `await hass.async_add_executor_job()` at custom_components/home-assistant-halo-main/halo.py, line 253: r = requests.post(self.API_GROUP_STATE.format(pid=pid),
[548031690064] Blocking calls must be done in the executor or a separate thread; Use `await hass.async_add_executor_job()` at custom_components/home-assistant-halo-main/halo.py, line 253: r = requests.post(self.API_GROUP_STATE.format(pid=pid),
[548044609088] Blocking calls must be done in the executor or a separate thread; Use `await hass.async_add_executor_job()` at custom_components/home-assistant-halo-main/halo.py, line 253: r = requests.post(self.API_GROUP_STATE.format(pid=pid),
[548020016416] Blocking calls must be done in the executor or a separate thread; Use `await hass.async_add_executor_job()` at custom_components/home-assistant-halo-main/halo.py, line 253: r = requests.post(self.API_GROUP_STATE.format(pid=pid),
[547985222720] Blocking calls must be done in the executor or a separate thread; Use `await hass.async_add_executor_job()` at custom_components/home-assistant-halo-main/halo.py, line 253: r = requests.post(self.API_GROUP_STATE.format(pid=pid),
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/websocket_api/commands.py", line 190, in handle_call_service
await hass.services.async_call(
File "/usr/src/homeassistant/homeassistant/core.py", line 1630, in async_call
task.result()
File "/usr/src/homeassistant/homeassistant/core.py", line 1667, in _execute_service
await cast(Callable[[ServiceCall], Awaitable[None]], handler.job.target)(
File "/usr/src/homeassistant/homeassistant/helpers/entity_component.py", line 204, in handle_service
await self.hass.helpers.service.entity_service_call(
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 668, in entity_service_call
future.result() # pop exception if have
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 930, in async_request_call
await coro
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 705, in _handle_entity_call
await result
File "/usr/src/homeassistant/homeassistant/components/light/__init__.py", line 504, in async_handle_light_on_service
await light.async_turn_on(**filter_turn_on_params(light, params))
File "/config/custom_components/home-assistant-halo-main/light.py", line 121, in async_turn_on
await self._device.async_turn_on()
File "/config/custom_components/home-assistant-halo-main/halo.py", line 41, in async_turn_on
await self._api.async_turn_on(self._pid, self._is_group)
File "/config/custom_components/home-assistant-halo-main/halo.py", line 227, in async_turn_on
return await self.async_set_group_state(pid, 'on_off', '[1]')
File "/config/custom_components/home-assistant-halo-main/halo.py", line 253, in async_set_group_state
r = requests.post(self.API_GROUP_STATE.format(pid=pid),
File "/usr/local/lib/python3.9/site-packages/requests/api.py", line 117, in post
return request('post', url, data=data, json=json, **kwargs)
File "/usr/local/lib/python3.9/site-packages/requests/api.py", line 61, in request
return session.request(method=method, url=url, **kwargs)
File "/usr/local/lib/python3.9/site-packages/requests/sessions.py", line 529, in request
resp = self.send(prep, **send_kwargs)
File "/usr/local/lib/python3.9/site-packages/requests/sessions.py", line 645, in send
r = adapter.send(request, **kwargs)
File "/usr/local/lib/python3.9/site-packages/requests/adapters.py", line 440, in send
resp = conn.urlopen(
File "/usr/local/lib/python3.9/site-packages/urllib3/connectionpool.py", line 703, in urlopen
httplib_response = self._make_request(
File "/usr/local/lib/python3.9/site-packages/urllib3/connectionpool.py", line 398, in _make_request
conn.request(method, url, **httplib_request_kw)
File "/usr/local/lib/python3.9/site-packages/urllib3/connection.py", line 239, in request
super(HTTPConnection, self).request(method, url, body=body, headers=headers)
File "/usr/local/lib/python3.9/http/client.py", line 1279, in request
self._send_request(method, url, body, headers, encode_chunked)
File "/usr/local/lib/python3.9/http/client.py", line 1290, in _send_request
self.putrequest(method, url, **skips)
File "/usr/local/lib/python3.9/site-packages/urllib3/connection.py", line 219, in putrequest
return _HTTPConnection.putrequest(self, method, url, *args, **kwargs)
File "/usr/src/homeassistant/homeassistant/util/async_.py", line 166, in protected_loop_func
check_loop(func, strict=strict)
File "/usr/src/homeassistant/homeassistant/util/async_.py", line 154, in check_loop
raise RuntimeError(
RuntimeError: Blocking calls must be done in the executor or a separate thread; Use `await hass.async_add_executor_job()` at custom_components/home-assistant-halo-main/halo.py, line 253: r = requests.post(self.API_GROUP_STATE.format(pid=pid),