hass-core/tests/components/bsblan/test_diagnostics.py
epenet a79be493e5
Adjust hass_client type hint in integration tests (#86954)
* Adjust hass_client type hint in integration tests

* Adjust hass_client_no_auth

* Fix rebase
2023-02-02 16:29:57 -05:00

23 lines
689 B
Python

"""Tests for the diagnostics data provided by the BSBLan integration."""
import json
from homeassistant.core import HomeAssistant
from tests.common import MockConfigEntry, load_fixture
from tests.components.diagnostics import get_diagnostics_for_config_entry
from tests.typing import ClientSessionGenerator
async def test_diagnostics(
hass: HomeAssistant,
hass_client: ClientSessionGenerator,
init_integration: MockConfigEntry,
):
"""Test diagnostics."""
diagnostics_fixture = json.loads(load_fixture("bsblan/diagnostics.json"))
assert (
await get_diagnostics_for_config_entry(hass, hass_client, init_integration)
== diagnostics_fixture
)