Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Neato Component Unable To Setup 404 On Endpoint #15638

Closed
dshokouhi opened this issue Jul 23, 2018 · 0 comments · Fixed by #15639
Closed

Neato Component Unable To Setup 404 On Endpoint #15638

dshokouhi opened this issue Jul 23, 2018 · 0 comments · Fixed by #15639

Comments

@dshokouhi
Copy link
Member

Home Assistant release with the issue:

ALL
Last working Home Assistant release (if known):

Never worked

Operating environment (Hass.io/Docker/Windows/etc.):

Impacts all install methods

Component/platform:

neato: https://www.home-assistant.io/components/neato/

Description of problem:

As reported in #11968 some users were facing a separate issue where they were getting a 404 and unable to setup the component. It was discovered in the main library that the hard coded endpoint needed to become dynamic.

Problem-relevant configuration.yaml entries and (fill out even if it seems unimportant):

neato:
  username: user
  password: pass

Traceback (if applicable):

Traceback (most recent call last):
  File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/setup.py", line 146, in _async_setup_component
    component.setup, hass, processed_config)  # type: ignore
  File "/usr/lib/python3.5/asyncio/futures.py", line 380, in __iter__
    yield self  # This tells Task to wait for completion.
  File "/usr/lib/python3.5/asyncio/tasks.py", line 304, in _wakeup
    future.result()
  File "/usr/lib/python3.5/asyncio/futures.py", line 293, in result
    raise self._exception
  File "/usr/lib/python3.5/concurrent/futures/thread.py", line 55, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/components/neato.py", line 109, in setup
    hass.data[NEATO_LOGIN] = NeatoHub(hass, config[DOMAIN], Account)
  File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/components/neato.py", line 133, in __init__
    self._hass.data[NEATO_ROBOTS] = self.my_neato.robots
  File "/srv/homeassistant/lib/python3.5/site-packages/pybotvac/account.py", line 64, in robots
    self.refresh_robots()
  File "/srv/homeassistant/lib/python3.5/site-packages/pybotvac/account.py", line 108, in refresh_robots
    traits=robot['traits']))
  File "/srv/homeassistant/lib/python3.5/site-packages/pybotvac/robot.py", line 37, in __init__
    if self.service_version not in SUPPORTED_SERVICES:
  File "/srv/homeassistant/lib/python3.5/site-packages/pybotvac/robot.py", line 150, in service_version
    return self.available_services['houseCleaning']
  File "/srv/homeassistant/lib/python3.5/site-packages/pybotvac/robot.py", line 146, in available_services
    return self.state['availableServices']
  File "/srv/homeassistant/lib/python3.5/site-packages/pybotvac/robot.py", line 142, in state
    return self.get_robot_state().json()
  File "/srv/homeassistant/lib/python3.5/site-packages/pybotvac/robot.py", line 118, in get_robot_state
    return self._message({'reqId': "1", 'cmd': "getRobotState"})
  File "/srv/homeassistant/lib/python3.5/site-packages/pybotvac/robot.py", line 56, in _message
    response.raise_for_status()
  File "/srv/homeassistant/lib/python3.5/site-packages/requests/models.py", line 939, in raise_for_status
    raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 404 Client Error: Not Found for url: https://nucleo.neatocloud.com/vendors/neato/robots/xxx-xxxxxx/messages

Additional information:

This was reported originally in another bug so I have created this one to keep track of it, the library changes were verified by the user and myself and have no impact on existing users.

@ghost ghost added the in progress label Jul 23, 2018
@ghost ghost removed the in progress label Jul 23, 2018
@home-assistant home-assistant locked and limited conversation to collaborators Oct 26, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant