Pass clientsession. (#53455)

pull/53461/head
Dermot Duffy 2021-07-25 10:58:50 -07:00 committed by GitHub
parent 33af2602af
commit 5189172b80
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 7 additions and 3 deletions

View File

@ -47,6 +47,7 @@ from homeassistant.const import (
from homeassistant.core import HomeAssistant, callback
from homeassistant.exceptions import ConfigEntryAuthFailed, ConfigEntryNotReady
from homeassistant.helpers import device_registry as dr
from homeassistant.helpers.aiohttp_client import async_get_clientsession
from homeassistant.helpers.dispatcher import (
async_dispatcher_connect,
async_dispatcher_send,
@ -274,6 +275,7 @@ async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool:
admin_password=entry.data.get(CONF_ADMIN_PASSWORD),
surveillance_username=entry.data.get(CONF_SURVEILLANCE_USERNAME),
surveillance_password=entry.data.get(CONF_SURVEILLANCE_PASSWORD),
session=async_get_clientsession(hass),
)
try:

View File

@ -21,6 +21,7 @@ from homeassistant.const import CONF_SOURCE, CONF_URL, CONF_WEBHOOK_ID
from homeassistant.core import callback
from homeassistant.data_entry_flow import FlowResult
from homeassistant.helpers import config_validation as cv
from homeassistant.helpers.aiohttp_client import async_get_clientsession
from . import create_motioneye_client
from .const import (
@ -114,6 +115,7 @@ class MotionEyeConfigFlow(ConfigFlow, domain=DOMAIN):
admin_password=user_input.get(CONF_ADMIN_PASSWORD),
surveillance_username=user_input.get(CONF_SURVEILLANCE_USERNAME),
surveillance_password=user_input.get(CONF_SURVEILLANCE_PASSWORD),
session=async_get_clientsession(self.hass),
)
errors = {}

View File

@ -8,7 +8,7 @@
"webhook"
],
"requirements": [
"motioneye-client==0.3.9"
"motioneye-client==0.3.10"
],
"codeowners": [
"@dermotduffy"

View File

@ -985,7 +985,7 @@ mitemp_bt==0.0.3
motionblinds==0.4.10
# homeassistant.components.motioneye
motioneye-client==0.3.9
motioneye-client==0.3.10
# homeassistant.components.mullvad
mullvad-api==1.0.0

View File

@ -557,7 +557,7 @@ minio==4.0.9
motionblinds==0.4.10
# homeassistant.components.motioneye
motioneye-client==0.3.9
motioneye-client==0.3.10
# homeassistant.components.mullvad
mullvad-api==1.0.0