Comment out unused function in script

This commit is contained in:
Fredrik Baberg 2023-01-11 11:58:49 +01:00
parent fee09b8f08
commit 661b346b40
2 changed files with 6 additions and 5 deletions

View File

@ -1,5 +1,5 @@
name: "3DPrinter-OctoPrint"
version: "2023.01.0"
version: "2023.01.01"
slug: "3dprinter-octoprint"
description: "OctoPrint as an addon, no additional bells and whistles."
url: "https://github.com/fredrikbaberg/home-assistant-addons/tree/main/3dprinter-octoprint"

View File

@ -19,8 +19,9 @@ export BASEDIR="--basedir /data/config/octoprint"
}
# Update OctoPrint config with settings used for the addon overall (could always be changed)
updateConfigRequired() {
# Update OctoPrint config with settings required for the addon to work properly (should be OK to run each time).
updateConfigRequired()
{
octoprint $BASEDIR config set --bool api.allowCrossOrigin true
octoprint $BASEDIR config set folder.generated "/tmp/octoprint/generated"
octoprint $BASEDIR config set folder.timelapse_tmp "/tmp/octoprint/timelapse/tmp"
@ -34,7 +35,7 @@ updateConfigRequired() {
}
# Update OctoPrint config with customized settings, not strictly required for addon to work but helps with features.
updateConfigCustom() {
# updateConfigCustom() {
# Add user, if needed.
# { # Make sure Ingress user for OctoPrint exists.
# bashio::log.notice "Ensure Ingress user (homeassistant) exist."
@ -46,7 +47,7 @@ updateConfigCustom() {
# bashio::log.warning "Failed to ensure Ingress user exists, may not be able to launch."
# }
# Trusted networks, access control etc.
}
# }
# Create initial OctoPrint config, if missing.