大佬请看下这个

另外
Logger: homeassistant.components.light
Source: util/async_.py:140
Integration: 灯光 (documentation, issues)
First occurred: 08:24:53 (2 occurrences)
Last logged: 08:24:53
Error adding entities for domain light with platform lifesmart
Error while setting up lifesmart platform for light
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 382, in async_add_entities
await asyncio.gather(*tasks)
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 607, in _async_add_entity
await entity.add_to_platform_finish()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 714, in add_to_platform_finish
await self.async_added_to_hass()
File "/config/custom_components/lifesmart/light.py", line 73, in async_added_to_hass
rmlist = LifeSmartLight._lifesmart_GetRemoteList(self)
File "/config/custom_components/lifesmart/light.py", line 143, in _lifesmart_GetRemoteList
response = json.loads(urllib.request.urlopen(req).read().decode('utf-8'))
File "/usr/local/lib/python3.9/urllib/request.py", line 214, in urlopen
return opener.open(url, data, timeout)
File "/usr/local/lib/python3.9/urllib/request.py", line 517, in open
response = self._open(req, data)
File "/usr/local/lib/python3.9/urllib/request.py", line 534, in _open
result = self._call_chain(self.handle_open, protocol, protocol +
File "/usr/local/lib/python3.9/urllib/request.py", line 494, in _call_chain
result = func(*args)
File "/usr/local/lib/python3.9/urllib/request.py", line 1389, in https_open
return self.do_open(http.client.HTTPSConnection, req,
File "/usr/local/lib/python3.9/urllib/request.py", line 1346, in do_open
h.request(req.get_method(), req.selector, req.data, 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/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/lifesmart/light.py, line 143: response = json.loads(urllib.request.urlopen(req).read().decode('utf-8'))
大佬请看下这个

另外
Logger: homeassistant.components.light
Source: util/async_.py:140
Integration: 灯光 (documentation, issues)
First occurred: 08:24:53 (2 occurrences)
Last logged: 08:24:53
Error adding entities for domain light with platform lifesmart
Error while setting up lifesmart platform for light
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 382, in async_add_entities
await asyncio.gather(*tasks)
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 607, in _async_add_entity
await entity.add_to_platform_finish()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 714, in add_to_platform_finish
await self.async_added_to_hass()
File "/config/custom_components/lifesmart/light.py", line 73, in async_added_to_hass
rmlist = LifeSmartLight._lifesmart_GetRemoteList(self)
File "/config/custom_components/lifesmart/light.py", line 143, in _lifesmart_GetRemoteList
response = json.loads(urllib.request.urlopen(req).read().decode('utf-8'))
File "/usr/local/lib/python3.9/urllib/request.py", line 214, in urlopen
return opener.open(url, data, timeout)
File "/usr/local/lib/python3.9/urllib/request.py", line 517, in open
response = self._open(req, data)
File "/usr/local/lib/python3.9/urllib/request.py", line 534, in _open
result = self._call_chain(self.handle_open, protocol, protocol +
File "/usr/local/lib/python3.9/urllib/request.py", line 494, in _call_chain
result = func(*args)
File "/usr/local/lib/python3.9/urllib/request.py", line 1389, in https_open
return self.do_open(http.client.HTTPSConnection, req,
File "/usr/local/lib/python3.9/urllib/request.py", line 1346, in do_open
h.request(req.get_method(), req.selector, req.data, 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/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/lifesmart/light.py, line 143: response = json.loads(urllib.request.urlopen(req).read().decode('utf-8'))