mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-01-31 06:39:11 +00:00
98_PID20.pm: prevent warnings during FHEM startup
git-svn-id: https://svn.fhem.de/fhem/trunk@29496 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
97e56c1d41
commit
dc1da25f12
@ -288,8 +288,8 @@ sub PID20_Notify($$)
|
|||||||
my $sensorName = $hash->{helper}{sensor};
|
my $sensorName = $hash->{helper}{sensor};
|
||||||
my $DEBUG = AttrVal( $name, 'pidDebugNotify', '0' ) eq '1';
|
my $DEBUG = AttrVal( $name, 'pidDebugNotify', '0' ) eq '1';
|
||||||
|
|
||||||
# no action if disabled
|
# no action if disabled or FHEM not initialized
|
||||||
return if IsDisabled($name);
|
return if (IsDisabled($name) || !$init_done);
|
||||||
|
|
||||||
if ( $dev->{NAME} eq 'global' ) {
|
if ( $dev->{NAME} eq 'global' ) {
|
||||||
my $events = $dev->{CHANGED};
|
my $events = $dev->{CHANGED};
|
||||||
|
Loading…
Reference in New Issue
Block a user