Add created_at/modified_at to config entries (#122456)

This commit is contained in:
Robert Resch 2024-07-29 22:08:46 +02:00 committed by GitHub
parent 20c4f84a4e
commit ad50136dbd
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
67 changed files with 440 additions and 392 deletions

View file

@ -2,6 +2,7 @@
import pytest
from syrupy import SnapshotAssertion
from syrupy.filters import props
from homeassistant.core import HomeAssistant
@ -20,7 +21,6 @@ async def test_entry_diagnostics(
snapshot: SnapshotAssertion,
) -> None:
"""Test config entry diagnostics."""
assert (
await get_diagnostics_for_config_entry(hass, hass_client, config_entry_setup)
== snapshot
)
assert await get_diagnostics_for_config_entry(
hass, hass_client, config_entry_setup
) == snapshot(exclude=props("created_at", "modified_at"))