diff --git a/homeassistant/components/myq/cover.py b/homeassistant/components/myq/cover.py index b1112f153b2..5b926a183f7 100644 --- a/homeassistant/components/myq/cover.py +++ b/homeassistant/components/myq/cover.py @@ -1,16 +1,17 @@ """Support for MyQ-Enabled Garage Doors.""" import logging - import voluptuous as vol from homeassistant.components.cover import ( - PLATFORM_SCHEMA, SUPPORT_CLOSE, SUPPORT_OPEN, CoverDevice) + CoverDevice, PLATFORM_SCHEMA, SUPPORT_CLOSE, SUPPORT_OPEN +) from homeassistant.const import ( CONF_PASSWORD, CONF_TYPE, CONF_USERNAME, STATE_CLOSED, STATE_CLOSING, - STATE_OPEN, STATE_OPENING) + STATE_OPEN, STATE_OPENING +) from homeassistant.helpers import aiohttp_client, config_validation as cv -REQUIREMENTS = ['pymyq==1.1.0'] +REQUIREMENTS = ['pymyq==1.2.0'] _LOGGER = logging.getLogger(__name__) MYQ_TO_HASS = { diff --git a/homeassistant/components/myq/manifest.json b/homeassistant/components/myq/manifest.json index 3dbabd4260d..c4057fecb25 100644 --- a/homeassistant/components/myq/manifest.json +++ b/homeassistant/components/myq/manifest.json @@ -3,7 +3,7 @@ "name": "Myq", "documentation": "https://www.home-assistant.io/components/myq", "requirements": [ - "pymyq==1.1.0" + "pymyq==1.2.0" ], "dependencies": [], "codeowners": [] diff --git a/homeassistant/helpers/aiohttp_client.py b/homeassistant/helpers/aiohttp_client.py index 6b1dd10bd5b..f5b3e443d3a 100644 --- a/homeassistant/helpers/aiohttp_client.py +++ b/homeassistant/helpers/aiohttp_client.py @@ -168,7 +168,10 @@ def _async_get_connector(hass: HomeAssistantType, else: ssl_context = False - connector = aiohttp.TCPConnector(loop=hass.loop, ssl=ssl_context) + connector = aiohttp.TCPConnector(loop=hass.loop, + enable_cleanup_closed=True, + ssl=ssl_context, + ) hass.data[key] = connector async def _async_close_connector(event: Event) -> None: diff --git a/requirements_all.txt b/requirements_all.txt index dd5aec398c7..9738d5e0191 100644 --- a/requirements_all.txt +++ b/requirements_all.txt @@ -1160,7 +1160,7 @@ pymonoprice==0.3 pymusiccast==0.1.6 # homeassistant.components.myq -pymyq==1.1.0 +pymyq==1.2.0 # homeassistant.components.mysensors pymysensors==0.18.0