Local tuya issue

Keep on getting this error with local tuya, it says failed to setup. help please…

This error originated from a custom integration.

Logger: homeassistant.config_entries
Source: custom_components/localtuya/cloud_api.py:98
Integration: LocalTuya (documentation, issues)
First occurred: 8:12:42 PM (2 occurrences)
Last logged: 8:17:02 PM

Error setting up entry localtuya for localtuya
Traceback (most recent call last):
File “/usr/local/lib/python3.10/site-packages/urllib3/connection.py”, line 174, in _new_conn
conn = connection.create_connection(
File “/usr/local/lib/python3.10/site-packages/urllib3/util/connection.py”, line 72, in create_connection
for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
File “/usr/local/lib/python3.10/socket.py”, line 955, in getaddrinfo
for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name does not resolve

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File “/usr/local/lib/python3.10/site-packages/urllib3/connectionpool.py”, line 703, in urlopen
httplib_response = self._make_request(
File “/usr/local/lib/python3.10/site-packages/urllib3/connectionpool.py”, line 386, in _make_request
self._validate_conn(conn)
File “/usr/local/lib/python3.10/site-packages/urllib3/connectionpool.py”, line 1042, in _validate_conn
conn.connect()
File “/usr/local/lib/python3.10/site-packages/urllib3/connection.py”, line 358, in connect
self.sock = conn = self._new_conn()
File “/usr/local/lib/python3.10/site-packages/urllib3/connection.py”, line 186, in _new_conn
raise NewConnectionError(
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7cd762f0>: Failed to establish a new connection: [Errno -2] Name does not resolve

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File “/usr/local/lib/python3.10/site-packages/requests/adapters.py”, line 489, in send
resp = conn.urlopen(
File “/usr/local/lib/python3.10/site-packages/urllib3/connectionpool.py”, line 787, in urlopen
retries = retries.increment(
File “/usr/local/lib/python3.10/site-packages/urllib3/util/retry.py”, line 592, in increment
raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host=‘openapi.tuyaeu.com’, port=443): Max retries exceeded with url: /v1.0/token?grant_type=1 (Caused by NewConnectionError(’<urllib3.connection.HTTPSConnection object at 0x7f7cd762f0>: Failed to establish a new connection: [Errno -2] Name does not resolve’))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File “/usr/src/homeassistant/homeassistant/config_entries.py”, line 382, in async_setup
result = await component.async_setup_entry(hass, self)
File “/config/custom_components/localtuya/init.py”, line 255, in async_setup_entry
res = await tuya_api.async_get_access_token()
File “/config/custom_components/localtuya/cloud_api.py”, line 104, in async_get_access_token
resp = await self.async_make_request(“GET”, “/v1.0/token?grant_type=1”)
File “/config/custom_components/localtuya/cloud_api.py”, line 98, in async_make_request
resp = await self._hass.async_add_executor_job(func)
File “/usr/local/lib/python3.10/concurrent/futures/thread.py”, line 58, in run
result = self.fn(*self.args, **self.kwargs)
File “/usr/local/lib/python3.10/site-packages/requests/api.py”, line 73, in get
return request(“get”, url, params=params, **kwargs)
File “/usr/local/lib/python3.10/site-packages/requests/api.py”, line 59, in request
return session.request(method=method, url=url, **kwargs)
File “/usr/local/lib/python3.10/site-packages/requests/sessions.py”, line 587, in request
resp = self.send(prep, **send_kwargs)
File “/usr/local/lib/python3.10/site-packages/requests/sessions.py”, line 701, in send
r = adapter.send(request, **kwargs)
File “/usr/local/lib/python3.10/site-packages/requests/adapters.py”, line 565, in send
raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host=‘openapi.tuyaeu.com’, port=443): Max retries exceeded with url: /v1.0/token?grant_type=1 (Caused by NewConnectionError(’<urllib3.connection.HTTPSConnection object at 0x7f7cd762f0>: Failed to establish a new connection: [Errno -2] Name does not resolve’))