Add support for family to aiohttp session helper (#102702)

This commit is contained in:
J. Nick Koston 2023-10-24 18:40:39 -05:00 committed by GitHub
parent a691bd26cf
commit f91583a0fc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 106 additions and 49 deletions

View file

@ -16,7 +16,7 @@ from homeassistant.const import (
Platform,
)
from homeassistant.core import HomeAssistant
from homeassistant.helpers.aiohttp_client import DATA_CLIENTSESSION
from homeassistant.helpers.aiohttp_client import DATA_CLIENTSESSION, _make_key
from homeassistant.setup import async_setup_component
from tests.typing import ClientSessionGenerator
@ -483,7 +483,7 @@ async def test_media_image_proxy(
def detach(self):
"""Test websession detach."""
hass.data[DATA_CLIENTSESSION] = MockWebsession()
hass.data[DATA_CLIENTSESSION] = {_make_key(): MockWebsession()}
state = hass.states.get(TEST_ENTITY_ID)
assert state.state == STATE_PLAYING