Command_line cover

My command line cover isnt working… My code is
cover:

  • platform: command_line
    covers:
    blinds:
    command_open: “sudo python /home/homeassisant/.homeassistant/switches/blinds/blindsOpenDown.py”
    command_close: “sudo python /home/homeassistant/.homeassistant/switches/blinds/blindsCloseUp.py”
    command_stop: “sudo python /home/homeassistant/.homeassistant/switches/blinds/blindsStop.py”

I have tried replaceing the " " with ’ ’ and it still doesnt work. Any ideas?

Try putting the full path to your python install. I am using a virtual environment and the following works for me

switch:
  platform: command_line
  switches:
    yolandacolor:
      command_on: "/srv/homeassistant/bin/python /home/homeassistant/yolandalight.py"