Syntax question in package

Hello
I have a generic thermostat in CLIMATE.YAML witch is driven by SCHEDULER CARD
it works
how can i move it in a PACKAGE.YAML ?

  - platform: generic_thermostat
    # 2_thermostat_test:
    # nom du nouveau thermostat 2023-10-06 test de scheduler
    name: 2_thermostat_test
   ...

is not working
neither:

generic_thermostat:
  2_thermostat_test:
    # nom du nouveau thermostat 2023-10-06 test de scheduler
    name: 2_thermostat_test
    ...

There is no error in VSCODE, but the thermostat is not visible in SCHEDULER
Even after multiple restart
How to declare a generic_thermostat in a package.yaml ?

Found it
correct syntax is (in a my_name.yaml declared as a package):

climate:
  - platform: generic_thermostat
    # unique_id: 1234567890
    # nom du nouveau thermostat 2023-10-06 test de scheduler
    name: 2_thermostat_test
   ...

thanks all for reading

PS: i dont know how to mark RESOLVED