Lost temp sensor on Pi after Octoprint update

Yesterday I lost the DS18B20 temp sensor on my Raspberry Pi after UI customizer plugin updated. I SSH'd into the Pi and noticed the "dtoverlay=w1-gpio" line missing from the config.txt file. I basically had to re-setup the sensor. My Pi webcam also had to be enabled again in the raspi-config. This happened once before with the last Octoprint update I did.

Is there any reason why the the pi would be losing these settings when Octoprint updates?

I can reboot the pi with no issues - the settings remain.

Ender 3 max with heated enclosure, Octoprint 1.8.6, Octopi 0.18.0, Raspberry Pi 3 Model B Plus Rev 1.3. Enclosure plugin with DS18B20 sensor

Thanks