-
-
Notifications
You must be signed in to change notification settings - Fork 28.5k
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
MyQ Open State Fix #16681
MyQ Open State Fix #16681
Conversation
Fixes issues with MyQ reporting an open state
@@ -11,7 +11,7 @@ | |||
from homeassistant.components.cover import ( | |||
CoverDevice, SUPPORT_CLOSE, SUPPORT_OPEN) | |||
from homeassistant.const import ( | |||
CONF_PASSWORD, CONF_TYPE, CONF_USERNAME, STATE_CLOSED, STATE_CLOSING, | |||
CONF_PASSWORD, CONF_TYPE, CONF_USERNAME, STATE_CLOSED, STATE_OPEN, STATE_CLOSING, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
line too long (85 > 79 characters)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fix line too long
remove un-needed code
That's weird that that one was missing |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I had the same error as others with STATE_OPENING while I was using 0.79.2.
Last fix in 0.79.3 resolved issue with the addition of STATE_OPEN. Simple fix.
UPDATE:
I responded too soon. After a few minutes, I get the same error still.
2018-10-05 17:22:10 ERROR (SyncWorker_1) [pymyq] MyQ - API Error[get_devices] 500 Server Error: Internal Server Error for url: https://myqexternal.myqdevice.com/api/v4/UserDeviceDetails/Get
2018-10-05 17:22:10 ERROR (MainThread) [homeassistant.core] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
File "/usr/local/lib/python3.6/site-packages/homeassistant/helpers/entity.py", line 234, in async_update_ha_state
state = self.state
File "/usr/local/lib/python3.6/site-packages/homeassistant/components/cover/__init__.py", line 231, in state
if self.is_opening:
File "/usr/local/lib/python3.6/site-packages/homeassistant/components/cover/myq.py", line 109, in is_opening
return MYQ_TO_HASS[self._status] == STATE_OPENING
KeyError: False
@talljohnson slightly different problem, MyQ is now sending back a new state and giving 500 server errors on occasion. See this issue: |
@geekofweek thanks for the clarification. Switching threads. |
Fixes issues with MyQ reporting an open state
Description:
This resolves an issue with the last change to represent discrete status of the door position caused an issue with it reporting the door status as open. This is a break fix as any automation relying on the state of the cover to be open would fail.
Related issue (if applicable): fixes #16680 (and potentially #16783)
Pull request in home-assistant.github.io with documentation (if applicable): home-assistant/home-assistant.github.io#<home-assistant.github.io PR number goes here>
Example entry for
configuration.yaml
(if applicable):NA
Checklist:
tox
. Your PR cannot be merged unless tests passIf user exposed functionality or configuration variables are added/changed:
If the code communicates with devices, web services, or third-party tools:
REQUIREMENTS
variable (example).requirements_all.txt
by runningscript/gen_requirements_all.py
..coveragerc
.If the code does not interact with devices: