Skip to content
This repository has been archived by the owner on Sep 26, 2021. It is now read-only.

Garage Door (myq) not responding #11

Closed
pacorain opened this issue Jun 26, 2020 · 3 comments
Closed

Garage Door (myq) not responding #11

pacorain opened this issue Jun 26, 2020 · 3 comments
Labels
bug Something isn't working

Comments

@pacorain
Copy link
Owner

2020-06-25 21:49:03 ERROR (MainThread) [homeassistant.config_entries] Error setting up entry [redacted] for myq
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 217, in async_setup
    hass, self
  File "/usr/src/homeassistant/homeassistant/components/myq/__init__.py", line 36, in async_setup_entry
    myq = await pymyq.login(conf[CONF_USERNAME], conf[CONF_PASSWORD], websession)
  File "/usr/local/lib/python3.7/site-packages/pymyq/api.py", line 176, in login
    await api.authenticate(username, password)
  File "/usr/local/lib/python3.7/site-packages/pymyq/api.py", line 123, in authenticate
    login_request=True,
  File "/usr/local/lib/python3.7/site-packages/pymyq/api.py", line 92, in request
    data = await resp.json(content_type=None)
  File "/usr/local/lib/python3.7/site-packages/aiohttp/client_reqrep.py", line 1040, in json
    return loads(stripped.decode(encoding))
  File "/usr/local/lib/python3.7/json/__init__.py", line 348, in loads
    return _default_decoder.decode(s)
  File "/usr/local/lib/python3.7/json/decoder.py", line 337, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/local/lib/python3.7/json/decoder.py", line 353, in raw_decode
    obj, end = self.scan_once(s, idx)
json.decoder.JSONDecodeError: Expecting ',' delimiter: line 4 column 65 (char 114)
@pacorain pacorain added the bug Something isn't working label Jun 26, 2020
pacorain added a commit that referenced this issue Jun 26, 2020
@pacorain
Copy link
Owner Author

Well that did nothing.

This is caused by home-assistant/core#37100. This will require a Home Assistant update.

@pacorain
Copy link
Owner Author

I was thinking about this and decided I could try updating the user agent in the home-assistant code, and it looks like this has already been done.

home-assistant/core#37100 (comment)

@pacorain
Copy link
Owner Author

Changing the user agent fixed the issue.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant