therealryanbonham / badnest

25 stars 27 forks source link

Broken: No schema supplied #18

Open zeshinsei opened 2 years ago

zeshinsei commented 2 years ago

Setting up a new Badnest integration from this repo using HACS results in:

2021-11-17 02:33:45 ERROR (MainThread) [homeassistant.setup] Error during setup of component badnest
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/setup.py", line 254, in _async_setup_component
result = await task
File "/usr/local/lib/python3.9/concurrent/futures/thread.py", line 52, in run
result = self.fn(*self.args, **self.kwargs)
File "/config/custom_components/badnest/__init__.py", line 44, in setup
'api': NestAPI(
File "/config/custom_components/badnest/api.py", line 54, in __init__
self.login()
File "/config/custom_components/badnest/api.py", line 72, in login
self._login_google(self._issue_token, self._cookie)
File "/config/custom_components/badnest/api.py", line 92, in _login_google
r = self._session.get(url=issue_token, headers=headers)
File "/usr/local/lib/python3.9/site-packages/requests/sessions.py", line 555, in get
return self.request('GET', url, **kwargs)
File "/usr/local/lib/python3.9/site-packages/requests/sessions.py", line 528, in request
prep = self.prepare_request(req)
File "/usr/local/lib/python3.9/site-packages/requests/sessions.py", line 456, in prepare_request
p.prepare(
File "/usr/local/lib/python3.9/site-packages/requests/models.py", line 316, in prepare
self.prepare_url(url, params)
File "/usr/local/lib/python3.9/site-packages/requests/models.py", line 390, in prepare_url
raise MissingSchema(error)
requests.exceptions.MissingSchema: Invalid URL '': No schema supplied. Perhaps you meant http://?

Is this no longer maintained?