mirror of
https://github.com/home-assistant/core.git
synced 2025-07-14 08:47:10 +00:00
parent
8fee1975b4
commit
e447d83024
@ -18,7 +18,7 @@ from homeassistant.helpers import discovery
|
|||||||
from homeassistant.helpers.aiohttp_client import async_get_clientsession
|
from homeassistant.helpers.aiohttp_client import async_get_clientsession
|
||||||
import homeassistant.helpers.config_validation as cv
|
import homeassistant.helpers.config_validation as cv
|
||||||
from homeassistant.helpers.typing import ConfigType
|
from homeassistant.helpers.typing import ConfigType
|
||||||
from homeassistant.util import dt as dt_util
|
from homeassistant.util import dt as dt_util, ssl as ssl_util
|
||||||
|
|
||||||
from .const import DATA_HASS_CONFIG, DOMAIN
|
from .const import DATA_HASS_CONFIG, DOMAIN
|
||||||
from .services import async_setup_services
|
from .services import async_setup_services
|
||||||
@ -47,6 +47,7 @@ async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool:
|
|||||||
access_token=entry.data[CONF_ACCESS_TOKEN],
|
access_token=entry.data[CONF_ACCESS_TOKEN],
|
||||||
websession=async_get_clientsession(hass),
|
websession=async_get_clientsession(hass),
|
||||||
time_zone=dt_util.get_default_time_zone(),
|
time_zone=dt_util.get_default_time_zone(),
|
||||||
|
ssl=ssl_util.get_default_context(),
|
||||||
)
|
)
|
||||||
hass.data[DOMAIN] = tibber_connection
|
hass.data[DOMAIN] = tibber_connection
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user