Skip to content

Commit

Permalink
Ignore created/modified-at timestamps in snapshot (#3918)
Browse files Browse the repository at this point in the history
  • Loading branch information
ludeeus authored Jul 24, 2024
1 parent ad09ea8 commit e872156
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@ async def assert_hacs_data(
"entity_id": hacs.hass.states.get(entity.entity_id).entity_id,
"state": hacs.hass.states.get(entity.entity_id).state,
"attributes": hacs.hass.states.get(entity.entity_id).attributes,
**recursive_remove_key(entity.as_partial_dict, ("id",)),
**recursive_remove_key(entity.as_partial_dict, ("id", "created_at", "modified_at")),
}
for entity in er.async_entries_for_config_entry(
er.async_get(hacs.hass),
Expand Down

0 comments on commit e872156

Please sign in to comment.