Entity Button Card not working

I had this entity card code working:

type: entities
entities:
  - entity: binary_sensor.any_light_on
    secondary_info: last-changed
  - entity: scene.turn_off_lights
    type: button
    name: Turn off lights
    icon: mdi:power
    action_name: Turn off lights
    hold_action:
      action: more-info
    tap_action:
      action: call-service
      service: light.turn_off
      service_data:
        entity_id: all
      confirmation:
        text: Should I turn all the lights off?
title: General

However, when trying to edit it, I’m getting all of these errors:
Configuration errors detected:

* Required key "entities.1.view" is missing.
* Required key "entities.1.view" is missing.
* Required key "entities.1.view" is missing.
* Required key "entities.1.conditions" is missing.
* Required key "entities.1.url" is missing.
* Required key "entities.1.entities" is missing.
* Required key "entities.1.attribute" is missing.
* Required key "entities.1.service" is missing.
* Required key "entities.1.text" is missing.

It seems to be a problem related to the button.
I’ve even tried with a empty button, and still doesn’t work. I can’t save it.

However, the already saved button is properly working.

Any ideas why?