Updates to bump MyQ to 3.1.2 (#54488)

This commit is contained in:
ehendrix23 2021-08-11 21:17:25 -06:00 committed by GitHub
parent 0626542a14
commit c040be423a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 11 additions and 6 deletions

View File

@ -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

View File

@ -31,7 +31,7 @@ class ConfigFlow(config_entries.ConfigFlow, domain=DOMAIN):
"""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:

View File

@ -115,7 +115,9 @@ class MyQDevice(CoordinatorEntity, CoverEntity):
# 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
@ -137,7 +139,9 @@ class MyQDevice(CoordinatorEntity, CoverEntity):
# 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

View File

@ -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": {

View File

@ -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

View File

@ -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