mirror of
https://github.com/home-assistant/core.git
synced 2025-07-21 12:17:07 +00:00
Updates to bump MyQ to 3.1.2 (#54488)
This commit is contained in:
parent
0626542a14
commit
c040be423a
@ -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
|
||||
|
@ -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:
|
||||
|
@ -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
|
||||
|
@ -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": {
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user