Mqtt.publish stopped working

I have a script that uses ‘mqtt.publish’. This recently (in the past few weeks) stopped working. The error is ‘Action mqtt.publish not found’.

I have updated all software to the latest version and restarted home assistant. The MQTT server run by home assistant is receiving messages from another computer (my raspberry pi) and sending to my desktop computer. What is going on?

Look in your logs for errors when HA starts up.

Make sure the app(addon) is running. Make sure the integration is pointed to it properly.

Okay. Where do I find the logs? Pretend I know next to nothing about Home Assistant because that is the case.

settings → system → logs

Okay. Thanks! I found the offending line, commented it out and restarted. It is working now. Thanks again.

I guess that I had made that change a while ago, but not restarted. So when I finally restarted it broke.