Skip to content

Commit

Permalink
Updates to bump MyQ to 3.1.2 (home-assistant#54488)
Browse files Browse the repository at this point in the history
  • Loading branch information
ehendrix23 authored Aug 12, 2021
1 parent 0626542 commit c040be4
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 6 deletions.
1 change: 1 addition & 0 deletions .coveragerc
Original file line number Diff line number Diff line change
Expand Up @@ -671,6 +671,7 @@ omit =
homeassistant/components/mystrom/light.py
homeassistant/components/mystrom/switch.py
homeassistant/components/myq/__init__.py
homeassistant/components/myq/cover.py
homeassistant/components/nad/media_player.py
homeassistant/components/nanoleaf/light.py
homeassistant/components/neato/__init__.py
Expand Down
2 changes: 1 addition & 1 deletion homeassistant/components/myq/config_flow.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ async def _async_validate_input(self, username, password):
"""Validate the user input allows us to connect."""
websession = aiohttp_client.async_get_clientsession(self.hass)
try:
await pymyq.login(username, password, websession)
await pymyq.login(username, password, websession, True)
except InvalidCredentialsError:
return {CONF_PASSWORD: "invalid_auth"}
except MyQError:
Expand Down
8 changes: 6 additions & 2 deletions homeassistant/components/myq/cover.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,9 @@ async def async_close_cover(self, **kwargs):
# Write closing state to HASS
self.async_write_ha_state()

if not await wait_task:
result = wait_task if isinstance(wait_task, bool) else await wait_task

if not result:
_LOGGER.error("Closing of cover %s failed", self._device.name)

# Write final state to HASS
Expand All @@ -137,7 +139,9 @@ async def async_open_cover(self, **kwargs):
# Write opening state to HASS
self.async_write_ha_state()

if not await wait_task:
result = wait_task if isinstance(wait_task, bool) else await wait_task

if not result:
_LOGGER.error("Opening of cover %s failed", self._device.name)

# Write final state to HASS
Expand Down
2 changes: 1 addition & 1 deletion homeassistant/components/myq/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"domain": "myq",
"name": "MyQ",
"documentation": "https://www.home-assistant.io/integrations/myq",
"requirements": ["pymyq==3.0.4"],
"requirements": ["pymyq==3.1.2"],
"codeowners": ["@bdraco"],
"config_flow": true,
"homekit": {
Expand Down
2 changes: 1 addition & 1 deletion requirements_all.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1610,7 +1610,7 @@ pymonoprice==0.3
pymsteams==0.1.12

# homeassistant.components.myq
pymyq==3.0.4
pymyq==3.1.2

# homeassistant.components.mysensors
pymysensors==0.21.0
Expand Down
2 changes: 1 addition & 1 deletion requirements_test_all.txt
Original file line number Diff line number Diff line change
Expand Up @@ -920,7 +920,7 @@ pymodbus==2.5.3rc1
pymonoprice==0.3

# homeassistant.components.myq
pymyq==3.0.4
pymyq==3.1.2

# homeassistant.components.mysensors
pymysensors==0.21.0
Expand Down

0 comments on commit c040be4

Please sign in to comment.