Skip to content

Commit

Permalink
Removing exiting Socket-managing
Browse files Browse the repository at this point in the history
Every runtime the sockets needs to be turned on or off .
This avoids to be turned on endless.
  • Loading branch information
butterwecksolutions authored Dec 6, 2023
1 parent 691d5d7 commit 99c634c
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions scripts/controller.sh
Original file line number Diff line number Diff line change
Expand Up @@ -635,11 +635,6 @@ check_abort_condition() {
# Function to manage fritz sockets and log a message
manage_fritz_sockets() {
local action=$1

if [ "$execute_switchablesockets_on" -eq 0 ]; then
log_message "I: execute_switchablesockets_on is 0. Exiting manage_fritz_sockets."
return
fi

[ "$action" != "off" ] && action=$([ "$execute_switchablesockets_on" == "1" ] && echo "on" || echo "off")

Expand Down Expand Up @@ -693,11 +688,6 @@ fritz_login() {
manage_shelly_sockets() {
local action=$1

if [ "$execute_switchablesockets_on" -eq 0 ]; then
log_message "I: execute_switchablesockets_on is 0. Exiting manage_shelly_sockets."
return
fi

[ "$action" != "off" ] && action=$([ "$execute_switchablesockets_on" == "1" ] && echo "on" || echo "off")

log_message "I: Turning $action Shelly sockets."
Expand Down

0 comments on commit 99c634c

Please sign in to comment.