From 82a7b06021fcf5017f1868c317cd405281e1a838 Mon Sep 17 00:00:00 2001 From: Marko Oldenburg Date: Tue, 20 Dec 2022 18:42:36 +0100 Subject: [PATCH] expand notify fn grep syntax --- 59_Weather.pm | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/59_Weather.pm b/59_Weather.pm index 5f52059..5ae171a 100755 --- a/59_Weather.pm +++ b/59_Weather.pm @@ -737,7 +737,12 @@ sub Weather_Notify { Weather_GetUpdate($hash); } - return if ( !grep { /^INITIALIZED|REREADCFG$/x } @{ $dev->{CHANGED} } ); + return + if ( + !grep { +/^INITIALIZED|REREADCFG|DELETEATTR.$name.disable|ATTR.$name.disable.[0-1]$/x + } @{ $dev->{CHANGED} } + ); # update weather after initialization or change of configuration # wait 10 to 29 seconds to avoid congestion due to concurrent activities