mirror of
https://github.com/home-assistant/core.git
synced 2025-04-23 16:57:53 +00:00
Avoid call to hass.helpers
in permobile (#111541)
This commit is contained in:
parent
24dee11a4d
commit
4de56c1751
@ -16,6 +16,7 @@ from homeassistant.const import (
|
||||
)
|
||||
from homeassistant.core import HomeAssistant
|
||||
from homeassistant.exceptions import ConfigEntryAuthFailed
|
||||
from homeassistant.helpers.aiohttp_client import async_get_clientsession
|
||||
|
||||
from .const import APPLICATION, DOMAIN
|
||||
from .coordinator import MyPermobilCoordinator
|
||||
@ -29,7 +30,7 @@ async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool:
|
||||
"""Set up MyPermobil from a config entry."""
|
||||
|
||||
# create the API object from the config and save it in hass
|
||||
session = hass.helpers.aiohttp_client.async_get_clientsession()
|
||||
session = async_get_clientsession(hass)
|
||||
p_api = MyPermobil(
|
||||
application=APPLICATION,
|
||||
session=session,
|
||||
|
Loading…
x
Reference in New Issue
Block a user