Yes there is
REQUIREMENTS = [‘xxxxx==x.x’]
Btw, getting same error using “amazon.com.au”
Traceback (most recent call last):
File “/usr/lib/python3.6/site-packages/requests/models.py”, line 346, in _get_idna_encoded_host
host = idna.encode(host, uts46=True).decode(‘utf-8’)
File “/usr/lib/python3.6/site-packages/idna/core.py”, line 361, in encode
s = alabel(label)
File “/usr/lib/python3.6/site-packages/idna/core.py”, line 284, in alabel
check_label(label)
File “/usr/lib/python3.6/site-packages/idna/core.py”, line 261, in check_label
raise InvalidCodepoint(‘Codepoint {0} at position {1} of {2} not allowed’.format(_unot(cp_value), pos+1, repr(label)))
idna.core.InvalidCodepoint: Codepoint U+201C at position 1 of ‘“amazon’ not allowedDuring handling of the above exception, another exception occurred:
Traceback (most recent call last):
File “/usr/lib/python3.6/site-packages/requests/models.py”, line 394, in prepare_url
host = self._get_idna_encoded_host(host)
File “/usr/lib/python3.6/site-packages/requests/models.py”, line 348, in _get_idna_encoded_host
raise UnicodeError
UnicodeErrorDuring handling of the above exception, another exception occurred:
Traceback (most recent call last):
File “/usr/lib/python3.6/site-packages/homeassistant/helpers/entity_platform.py”, line 129, in _async_setup_platform
SLOW_SETUP_MAX_WAIT, loop=hass.loop)
File “/usr/lib/python3.6/asyncio/tasks.py”, line 358, in wait_for
return fut.result()
File “/usr/lib/python3.6/concurrent/futures/thread.py”, line 56, in run
result = self.fn(*self.args, **self.kwargs)
File “/config/custom_components/media_player/alexa.py”, line 91, in setup_platform
login = AlexaLogin(url, email, password)
File “/config/custom_components/media_player/alexa.py”, line 474, in init
self.login()
File “/config/custom_components/media_player/alexa.py”, line 511, in login
resp = self._session.get(site)
File “/usr/lib/python3.6/site-packages/requests/sessions.py”, line 525, in get
return self.request(‘GET’, url, **kwargs)
File “/usr/lib/python3.6/site-packages/requests/sessions.py”, line 498, in request
prep = self.prepare_request(req)
File “/usr/lib/python3.6/site-packages/requests/sessions.py”, line 441, in prepare_request
hooks=merge_hooks(request.hooks, self.hooks),
File “/usr/lib/python3.6/site-packages/requests/models.py”, line 309, in prepare
self.prepare_url(url, params)
File “/usr/lib/python3.6/site-packages/requests/models.py”, line 396, in prepare_url
raise InvalidURL(‘URL has an invalid label.’)
requests.exceptions.InvalidURL: URL has an invalid label.