Conditional card with gauge?

I’ve got this configuration:

type: entities
entities:
  - switch.greenwave_6
  - type: conditional
    conditions:
      - entity: switch.greenwave_6
        state: 'on'
    row:
      entity: sensor.greenwave_6_electric_consumption_w
      type: gauge
      min: 0
      needle: true
      name: Frituurpan
      max: 2500
      severity:
        green: 50
        yellow: 750
        red: 1500

It gives this error:

Unknown type encountered: gauge

But without the conditions, it works fine. How do I get this working?