fix IsDisabled

change condition for is disabled in GetUpdate fn
This commit is contained in:
Marko Oldenburg 2022-12-20 15:29:49 +01:00
parent 67508e453c
commit 889851ff05

View File

@ -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);