Tesla HACS grid consumption cost

I’m using the Tesla HACS integration to monitor data from my solar panels. It works pretty well for the most part with a few quirks. One thing I don’t understand is a sensor called Electric grid consumption kWh Cost, or sensor.tesla_solar_grid_consumption_cost. It shows numbers in the range of -20 and 3 kWh. Where does this data come from? Is it from the Tesla energy_sites API or is it some calculation done by this integration? I tried searching for this entity name in the source code and found nothing. This number does not seem related to the current tariffs from my utility company.