From dc1da25f12fc512463bd583680509f2a31c58e0b Mon Sep 17 00:00:00 2001 From: betateilchen <> Date: Wed, 8 Jan 2025 08:50:44 +0000 Subject: [PATCH] 98_PID20.pm: prevent warnings during FHEM startup git-svn-id: https://svn.fhem.de/fhem/trunk@29496 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/FHEM/98_PID20.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fhem/FHEM/98_PID20.pm b/fhem/FHEM/98_PID20.pm index 2a1440138..56c876328 100644 --- a/fhem/FHEM/98_PID20.pm +++ b/fhem/FHEM/98_PID20.pm @@ -288,8 +288,8 @@ sub PID20_Notify($$) my $sensorName = $hash->{helper}{sensor}; my $DEBUG = AttrVal( $name, 'pidDebugNotify', '0' ) eq '1'; - # no action if disabled - return if IsDisabled($name); + # no action if disabled or FHEM not initialized + return if (IsDisabled($name) || !$init_done); if ( $dev->{NAME} eq 'global' ) { my $events = $dev->{CHANGED};