Actually I think I deviated and forget you not using docker but using VM with HASS OS(docker).
In this case portainer and above cannot help but the .json suggestion still should. Originally I realize the VM but I forgot when I look back at this question. I will look at HASSOS and check this on one of my RasPi with HA to see where this file live and how changes affect it. I beileve this should be similar enough to your issue.