2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-03-03 23:06:37 +00:00

LGTV_IP12: performance optimizations

git-svn-id: https://svn.fhem.de/fhem/trunk@11301 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
markusbloch 2016-04-24 09:28:53 +00:00
parent 3ae0174d47
commit 61926851bc

View File

@ -122,7 +122,6 @@ LGTV_IP12_Initialize($)
$hash->{GetFn} = "LGTV_IP12_Get";
$hash->{AttrFn} = "LGTV_IP12_Attr";
$hash->{NotifyFn} = "LGTV_IP12_Notify";
$hash->{NOTIFYDEV} = "global";
$hash->{AttrList} = "do_not_notify:0,1 pairingcode request-timeout:1,2,3,4,5 disable:0,1 disabledForIntervals ".$readingFnAttributes;
}
@ -165,6 +164,7 @@ LGTV_IP12_Define($$)
}
$hash->{STATE} = 'defined';
$hash->{NOTIFYDEV} = "global";
return undef;
}
@ -201,7 +201,7 @@ LGTV_IP12_Notify($$)
my ($hash,$dev) = @_;
my $name = $hash->{NAME};
return if($dev->{NAME} ne "global");
return unless(exists($dev->{NAME}) and $dev->{NAME} eq "global");
if(grep(m/^INITIALIZED|REREADCFG$/, @{$dev->{CHANGED}}))
{