From 889851ff053431d4bd64babd0d4c7e7c8844b58f Mon Sep 17 00:00:00 2001 From: Marko Oldenburg Date: Tue, 20 Dec 2022 15:29:49 +0100 Subject: [PATCH] fix IsDisabled change condition for is disabled in GetUpdate fn --- 59_Weather.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/59_Weather.pm b/59_Weather.pm index 41dfef9..2f0fc4f 100755 --- a/59_Weather.pm +++ b/59_Weather.pm @@ -615,7 +615,7 @@ sub Weather_GetUpdate { my $name = $hash->{NAME}; - if ( $attr{$name} && $attr{$name}->{disable} ) { + if ( IsDisabled($name) ) { Log3 $hash, 5, "Weather $name: retrieval of weather data is disabled by attribute."; readingsBeginUpdate($hash);