Mini graph set name

Hello,
I have mini graph with below config, and need advice how we can set name to sensor value?
I try set the name same with the entity like sensor.current_total but tge result is string ‘sensor.current_total’ and not the value.

type: custom:mini-graph-card
name: Power
entities:

  • entity: sensor.plug_cctv_atas_voltage
    name:
    color: green
  • entity: sensor.current_total
    name:
    color: blue

The documentation shows name is a string, so you cannot use a template. You could use lovelace-card-templater around it to support templating the name, however the mini-graph-card already shows the state by default, so you could just turn off the name and icon, leaving the state:

show:
  name: false
  icon: false