core/tests/components/incomfort/test_diagnostics.py

25 lines
789 B
Python

"""Test diagnostics for the Intergas InComfort integration."""
from unittest.mock import MagicMock
from homeassistant.core import HomeAssistant
from tests.common import MockConfigEntry, SnapshotAssertion
from tests.components.diagnostics import get_diagnostics_for_config_entry
from tests.typing import ClientSessionGenerator
async def test_entry_diagnostics(
hass: HomeAssistant,
hass_client: ClientSessionGenerator,
snapshot: SnapshotAssertion,
mock_incomfort: MagicMock,
mock_config_entry: MockConfigEntry,
) -> None:
"""Test the incomfort integration diagnostics."""
await hass.config_entries.async_setup(mock_config_entry.entry_id)
snapshot.assert_match(
await get_diagnostics_for_config_entry(hass, hass_client, mock_config_entry)
)