Unable to access energy_yesterday entity from tasmota plug with statistics graph

I have maybe 20 Sonoff S31 plugs that have been configured with tasmota. There are many entities available to track energy use for each plug, among them sensor.tasmota_energy_total, sensor.tasmota_energy_today, sensor.tasmota_energy_yesterday.

When I use the statistics graph card in dashboard, the first two of these entities are available – but the yesterday variable is not. I can display the yesterday entity using an entities card, and it gets written to my influxdb database and I am able to later graph it using grafana. But I would like to display a graph like this on my HA dashboard using statistics graph but I am not able to do so.
statistics graph

What are the attributes of sensor.tasmota_energy_yesterday?

Look in the right hand column of Developer Tools → States.

To use the statistics card the entity must have LTS (Long Term Statistics) recorded. To have LTS recorded for an entity, the entity must have valid state_class and unit_of_measurement attributes.

You can use the graph card instead. Or you can add the attributes using customize.

Thanks or that suggestion. It took me a while to figure out how to do it, but I was able to add the necessary attributes in my configuration.yaml to solve my problem.