mirror of
https://github.com/home-assistant/core.git
synced 2025-07-28 15:47:12 +00:00
Add error message to snapshot_platform helper (#117974)
This commit is contained in:
parent
488b2edfd8
commit
bb0b01e4a9
@ -1757,5 +1757,6 @@ async def snapshot_platform(
|
||||
for entity_entry in entity_entries:
|
||||
assert entity_entry == snapshot(name=f"{entity_entry.entity_id}-entry")
|
||||
assert entity_entry.disabled_by is None, "Please enable all entities."
|
||||
assert (state := hass.states.get(entity_entry.entity_id))
|
||||
state = hass.states.get(entity_entry.entity_id)
|
||||
assert state, f"State not found for {entity_entry.entity_id}"
|
||||
assert state == snapshot(name=f"{entity_entry.entity_id}-state")
|
||||
|
Loading…
x
Reference in New Issue
Block a user