Hass-variable

Hello to all,
I have a configuration problem with hass-variable
the variables are never updated,
I have the following error message:
extra keys not allowed @data[‘entity’]
Do you have a solution to this?

Thank you in advance for your feedback,

post the config and make sure it’s properly formatted.

variable:
  etat_lampe_couloir:
    value: 0

- id: 'xxxx'
  alias: Interrupteur - Allumer lampe couloir R1
  description: ''
  trigger:
  - platform: device
    domain: mqtt
    device_id: xxxx
    type: action
    subtype: single
    discovery_id: xxxx action_single
  condition:
  - condition: state
    entity_id: variable.etat_lampe_couloir
    state: '0'
  action:
  - type: turn_on
    device_id: xxxx
    entity_id: switch.prise_nous_08
    domain: switch
  - service: variable.set_variable
    data:
      entity: etat_lampe_couloir
      value: 2

I found my mistake when I published the last post…
I replaced “entity” by “variable”.