2022-01-26 06:20:11 +00:00
|
|
|
"""Test Tile diagnostics."""
|
2024-03-08 13:44:56 +00:00
|
|
|
|
2023-08-24 15:11:24 +00:00
|
|
|
from syrupy import SnapshotAssertion
|
|
|
|
|
2023-02-16 13:08:03 +00:00
|
|
|
from homeassistant.core import HomeAssistant
|
2022-01-26 06:20:11 +00:00
|
|
|
|
|
|
|
from tests.components.diagnostics import get_diagnostics_for_config_entry
|
2023-02-16 13:08:03 +00:00
|
|
|
from tests.typing import ClientSessionGenerator
|
2022-01-26 06:20:11 +00:00
|
|
|
|
|
|
|
|
2023-02-16 13:08:03 +00:00
|
|
|
async def test_entry_diagnostics(
|
|
|
|
hass: HomeAssistant,
|
|
|
|
config_entry,
|
|
|
|
hass_client: ClientSessionGenerator,
|
|
|
|
setup_config_entry,
|
2023-08-24 15:11:24 +00:00
|
|
|
snapshot: SnapshotAssertion,
|
2023-02-16 13:08:03 +00:00
|
|
|
) -> None:
|
2022-01-26 06:20:11 +00:00
|
|
|
"""Test config entry diagnostics."""
|
2023-08-24 15:11:24 +00:00
|
|
|
assert (
|
|
|
|
await get_diagnostics_for_config_entry(hass, hass_client, config_entry)
|
|
|
|
== snapshot
|
|
|
|
)
|