mirror of
https://github.com/home-assistant/core.git
synced 2025-07-22 20:57:21 +00:00
Pass clientsession. (#53455)
This commit is contained in:
parent
33af2602af
commit
5189172b80
@ -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:
|
||||
|
@ -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 = {}
|
||||
|
@ -8,7 +8,7 @@
|
||||
"webhook"
|
||||
],
|
||||
"requirements": [
|
||||
"motioneye-client==0.3.9"
|
||||
"motioneye-client==0.3.10"
|
||||
],
|
||||
"codeowners": [
|
||||
"@dermotduffy"
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user