Ok, I think I figured it out - stupid mistake, I didn’t have a valid command in my sensor config.
it should be:
- platform: command_line
name: test_sensor_12
command: "python3 /home/homeassistant/.homeassistant/pythonscripts/test.py sensor.test"