"""Fixtures for tests."""

from unittest.mock import patch

import pytest

from homeassistant.core import HomeAssistant

from .common import ComponentFactory

from tests.test_util.aiohttp import AiohttpClientMocker


@pytest.fixture()
def component_factory(
    hass: HomeAssistant, aiohttp_client, aioclient_mock: AiohttpClientMocker
):
    """Return a factory for initializing the withings component."""
    with patch(
        "homeassistant.components.withings.common.ConfigEntryWithingsApi"
    ) as api_class_mock:
        yield ComponentFactory(hass, api_class_mock, aiohttp_client, aioclient_mock)

f39e1f159b2d5af1391ac6c9ee735f1b2fad8c01
<mask token>

<mask token>


@pytest.fixture()
def component_factory(hass: HomeAssistant, aiohttp_client, aioclient_mock:
    AiohttpClientMocker):
    """Return a factory for initializing the withings component."""
    with patch(
        'homeassistant.components.withings.common.ConfigEntryWithingsApi'
        ) as api_class_mock:
        yield ComponentFactory(hass, api_class_mock, aiohttp_client,
            aioclient_mock)

<mask token>
from unittest.mock import patch
import pytest
from homeassistant.core import HomeAssistant
from .common import ComponentFactory
from tests.test_util.aiohttp import AiohttpClientMocker


@pytest.fixture()
def component_factory(hass: HomeAssistant, aiohttp_client, aioclient_mock:
    AiohttpClientMocker):
    """Return a factory for initializing the withings component."""
    with patch(
        'homeassistant.components.withings.common.ConfigEntryWithingsApi'
        ) as api_class_mock:
        yield ComponentFactory(hass, api_class_mock, aiohttp_client,
            aioclient_mock)

"""Fixtures for tests."""

from unittest.mock import patch

import pytest

from homeassistant.core import HomeAssistant

from .common import ComponentFactory

from tests.test_util.aiohttp import AiohttpClientMocker


@pytest.fixture()
def component_factory(
    hass: HomeAssistant, aiohttp_client, aioclient_mock: AiohttpClientMocker
):
    """Return a factory for initializing the withings component."""
    with patch(
        "homeassistant.components.withings.common.ConfigEntryWithingsApi"
    ) as api_class_mock:
        yield ComponentFactory(hass, api_class_mock, aiohttp_client, aioclient_mock)
