From 581fd34264d228ca6e39c676a2d2eaa9fd7bb837 Mon Sep 17 00:00:00 2001 From: Joost Lekkerkerker Date: Sat, 28 Jun 2025 10:32:53 +0200 Subject: [PATCH] Create new clientsession instead of using the shared session --- homeassistant/components/rest/data.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/homeassistant/components/rest/data.py b/homeassistant/components/rest/data.py index 3c02f62f852..0da5c131ce1 100644 --- a/homeassistant/components/rest/data.py +++ b/homeassistant/components/rest/data.py @@ -11,7 +11,7 @@ import xmltodict from homeassistant.core import HomeAssistant from homeassistant.helpers import template -from homeassistant.helpers.aiohttp_client import async_get_clientsession +from homeassistant.helpers.aiohttp_client import async_create_clientsession from homeassistant.helpers.json import json_dumps from homeassistant.util.ssl import SSLCipherList @@ -94,7 +94,7 @@ class RestData: async def async_update(self, log_errors: bool = True) -> None: """Get the latest data from REST service with provided method.""" if not self._session: - self._session = async_get_clientsession( + self._session = async_create_clientsession( self._hass, verify_ssl=self._verify_ssl, ssl_cipher=self._ssl_cipher_list,