diff --git a/homeassistant/components/brunt/__init__.py b/homeassistant/components/brunt/__init__.py index 5fe3f7d0012..988a96ce08e 100644 --- a/homeassistant/components/brunt/__init__.py +++ b/homeassistant/components/brunt/__init__.py @@ -11,6 +11,7 @@ from homeassistant.config_entries import ConfigEntry from homeassistant.const import CONF_PASSWORD, CONF_USERNAME from homeassistant.core import HomeAssistant from homeassistant.exceptions import ConfigEntryAuthFailed, ConfigEntryNotReady +from homeassistant.helpers.aiohttp_client import async_get_clientsession from homeassistant.helpers.update_coordinator import DataUpdateCoordinator, UpdateFailed from .const import DATA_BAPI, DATA_COOR, DOMAIN, PLATFORMS, REGULAR_INTERVAL @@ -20,9 +21,11 @@ _LOGGER = logging.getLogger(__name__) async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool: """Set up Brunt using config flow.""" + session = async_get_clientsession(hass) bapi = BruntClientAsync( username=entry.data[CONF_USERNAME], password=entry.data[CONF_PASSWORD], + session=session, ) try: await bapi.async_login() diff --git a/homeassistant/components/brunt/manifest.json b/homeassistant/components/brunt/manifest.json index 72277a820e4..11bafbca07b 100644 --- a/homeassistant/components/brunt/manifest.json +++ b/homeassistant/components/brunt/manifest.json @@ -3,7 +3,7 @@ "name": "Brunt Blind Engine", "config_flow": true, "documentation": "https://www.home-assistant.io/integrations/brunt", - "requirements": ["brunt==1.1.1"], + "requirements": ["brunt==1.2.0"], "codeowners": ["@eavanvalkenburg"], "iot_class": "cloud_polling", "loggers": ["brunt"] diff --git a/requirements_all.txt b/requirements_all.txt index 1b8e6616d59..ac972d24fb5 100644 --- a/requirements_all.txt +++ b/requirements_all.txt @@ -457,7 +457,7 @@ brother==1.1.0 brottsplatskartan==0.0.1 # homeassistant.components.brunt -brunt==1.1.1 +brunt==1.2.0 # homeassistant.components.bsblan bsblan==0.5.0 diff --git a/requirements_test_all.txt b/requirements_test_all.txt index a21bfb336e5..7a1d16c0e87 100644 --- a/requirements_test_all.txt +++ b/requirements_test_all.txt @@ -306,7 +306,7 @@ broadlink==0.18.0 brother==1.1.0 # homeassistant.components.brunt -brunt==1.1.1 +brunt==1.2.0 # homeassistant.components.bsblan bsblan==0.5.0