fix bug in parse_config for ignore lines with time-conditions
This commit is contained in:
parent
c002091d0e
commit
cae20f5857
|
@ -1330,7 +1330,7 @@ function parse_config() {
|
||||||
line_human="${line_human}Prevent ${roomc}${tok[1]}${linec} from being the MyZone"
|
line_human="${line_human}Prevent ${roomc}${tok[1]}${linec} from being the MyZone"
|
||||||
elif [[ ${tok[0]} == "noop" || ${tok[0]} == "ignore" ]]; then
|
elif [[ ${tok[0]} == "noop" || ${tok[0]} == "ignore" ]]; then
|
||||||
line_human="${line_human}Ignore ${roomc}${tok[1]}${linec} temperature when deciding what to do"
|
line_human="${line_human}Ignore ${roomc}${tok[1]}${linec} temperature when deciding what to do"
|
||||||
ign="${ign} ${tok[1]}"
|
[[ $ok -eq 1 ]] && ign="${ign} ${tok[1]}"
|
||||||
elif [[ ${tok[0]} == "force" ]]; then
|
elif [[ ${tok[0]} == "force" ]]; then
|
||||||
if [[ $VALID_ZONE_STATES == *\ ${tok[2]}\ * ]]; then
|
if [[ $VALID_ZONE_STATES == *\ ${tok[2]}\ * ]]; then
|
||||||
local adj
|
local adj
|
||||||
|
|
Loading…
Reference in New Issue