Brunt package to 1.2.0 (#66722)

This commit is contained in:
Eduard van Valkenburg 2022-02-17 11:03:22 +01:00 committed by GitHub
parent 714daebfb9
commit 42b5ce184c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 6 additions and 3 deletions

View File

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

View File

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

View File

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

View File

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