Add error message to snapshot_platform helper (#117974)
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…
Reference in New Issue