Linux Machine ssh shutdown help

shell_command:
turn_off_remote_pc: "ssh -i /config/ssh_keys/id_rsa_homeassistant -o 'StrictHostKeyChecking=no' [email protected] sudo shutdown -h now"
turn_off_remote_rpi: "ssh -i /config/ssh_keys/id_rsa_homeassistant -o 'StrictHostKeyChecking=no' [email protected] sudo shutdown -h now"

The system cannot restart because the configuration is not valid: Invalid config for [shell_command]: value should be a string for dictionary value @ data['shell_command']['shell_command']. Got OrderedDict([('turn_off_remote_pc', "ssh -i /config/ssh_keys/id_rsa_homeassistant -o 'StrictHostKeyChecking=no' homeassistant@ipaddress sudo shutdown -h now"), ('turn_off_remote_rpi', "ssh -i /config/ssh_keys/id_rsa_homeassistant -o 'StrictHostKeyChecking=no' raspberrypi@ipaddress sudo shutdown -h now")]). (See /config/configuration.yaml, line 26).

This pops up when I try to reboot the homeassistant instance. Can you please help me with where I am going wrong in this?

/r/homeassistant Thread Parent