home-assistant / core

:house_with_garden: Open source home automation that puts local control and privacy first.
https://www.home-assistant.io
Apache License 2.0
71.86k stars 30.1k forks source link

MyQ Integration Python Script not working #44636

Closed thetravellor closed 3 years ago

thetravellor commented 3 years ago

The problem

MyQ Integration no longer opens and closes garage door. MyQ still works externally to HomeAssistant and nothing has changed.

Environment

Raspberry Pi 4b, 8GB model.

System Health

version 2020.12.1
installation_type Home Assistant OS
dev false
hassio true
docker true
virtualenv false
python_version 3.8.6
os_name Linux
os_version 5.4.79-v8
arch aarch64
timezone Australia/Melbourne
AccuWeather can_reach_server | ok -- | -- remaining_requests | 41
Home Assistant Cloud logged_in | true -- | -- subscription_expiration | 13 January 2021, 11:00 relayer_connected | true remote_enabled | true remote_connected | true alexa_enabled | false google_enabled | true can_reach_cert_server | ok can_reach_cloud_auth | ok can_reach_cloud | ok
Home Assistant Supervisor host_os | Home Assistant OS 5.9 -- | -- update_channel | stable supervisor_version | 2020.12.7 docker_version | 19.03.13 disk_total | 57.8 GB disk_used | 10.6 GB healthy | true supported | true board | rpi4-64 supervisor_api | ok version_api | ok installed_addons | Check Home Assistant configuration (3.6.0), Terminal & SSH (8.10.0), AirSonos (2.4.1), Samba share (9.3.0), Glances (0.9.1), Grafana (5.3.6)
Lovelace dashboards | 1 -- | -- mode | storage views | 7 resources | 0

Problem-relevant configuration.yaml

Not configured via configuration.yaml, setup via GUI

Traceback/Error logs

Looked on Homeassistant Core logs and noted an error:

2020-12-24 20:36:12 ERROR (MainThread) [homeassistant.config_entries] Error setting up entry xxx.yyy@gmail.com for myq Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/config_entries.py", line 236, in async_setup result = await component.async_setup_entry(hass, self) # type: ignore 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.8/site-packages/pymyq/api.py", line 259, in login await api.authenticate(username, password, False) File "/usr/local/lib/python3.8/site-packages/pymyq/api.py", line 170, in authenticate auth_resp = await self.request( File "/usr/local/lib/python3.8/site-packages/pymyq/api.py", line 151, in request return await self._send_request( File "/usr/local/lib/python3.8/site-packages/pymyq/api.py", line 114, in _send_request message = f"Error requesting data from {url}: {data.get('description', str(err))}" UnboundLocalError: local variable 'err' referenced before assignment

Additional information

thetravellor commented 3 years ago

May relate to https://github.com/arraylabs/pymyq/issues/56

simplelnx commented 3 years ago

Same issue with docker image on armv7 version 2020.12.1 Started about 3 days back.

Myq integration issue. Can you take a look. @arraylabs

BreeOge commented 3 years ago

I too am having the same issue, 3 days ago it started.

probot-home-assistant[bot] commented 3 years ago

myq documentation myq source (message by IssueLinks)

frenck commented 3 years ago

Duplicate of #44592, #44435, #44378 (and a bunch more). Fixed in #44328 (will be part of the next release).

probot-home-assistant[bot] commented 3 years ago

Hey there @bdraco, mind taking a look at this issue as its been labeled with an integration (myq) you are listed as a codeowner for? Thanks! (message by CodeOwnersMention)