Message malformed: extra keys not allowed @ data['automation'] - error

Trying to setup automation based on github documentation

Set temperature to 24 in heat mode

device_id: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
domain: climate
automation:
actions:
action: climate.set_temperature
target:
entity_id: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
data:
temperature: 24
hvac_mode: heat
alias: Set main floor to 78

Error: Message malformed: extra keys not allowed @ data[‘automation’]

Its the yaml from the documentation. Can someone help

Please read and follow point 11 here: How to help us help you - or How to ask a good question

What documentation where?

Even trying to interpret it without it being formatted properly it doesn’t even look like any of that makes any sense.