mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-04-28 17:12:32 +00:00
LGTV_IP12: fix event errors
git-svn-id: https://svn.fhem.de/fhem/trunk@11009 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
65eb66b543
commit
381e768000
@ -202,7 +202,7 @@ LGTV_IP12_Notify($$)
|
|||||||
|
|
||||||
return if($dev->{NAME} ne "global");
|
return if($dev->{NAME} ne "global");
|
||||||
|
|
||||||
if(!grep(m/^INITIALIZED|REREADCFG$/, @{$dev->{CHANGED}}))
|
if(grep(m/^INITIALIZED|REREADCFG$/, @{$dev->{CHANGED}}))
|
||||||
{
|
{
|
||||||
if(defined(AttrVal($name, "pairingcode", undef)) and AttrVal($name, "pairingcode", undef) =~/^\d{6}$/)
|
if(defined(AttrVal($name, "pairingcode", undef)) and AttrVal($name, "pairingcode", undef) =~/^\d{6}$/)
|
||||||
{
|
{
|
||||||
@ -212,7 +212,7 @@ LGTV_IP12_Notify($$)
|
|||||||
|
|
||||||
LGTV_IP12_ResetTimer($hash, 0);
|
LGTV_IP12_ResetTimer($hash, 0);
|
||||||
}
|
}
|
||||||
elsif(!grep(m/^(?:ATTR $name disable.*|DELETEATTR $name disable.*)$/, @{$dev->{CHANGED}}))
|
elsif(grep(m/^(?:ATTR $name disable.*|DELETEATTR $name disable.*)$/, @{$dev->{CHANGED}}))
|
||||||
{
|
{
|
||||||
LGTV_IP12_ResetTimer($hash, 0);
|
LGTV_IP12_ResetTimer($hash, 0);
|
||||||
}
|
}
|
||||||
@ -662,6 +662,8 @@ sub LGTV_IP12_ResetTimer($;$)
|
|||||||
InternalTimer(gettimeofday()+$hash->{helper}{OFF_INTERVAL}, "LGTV_IP12_GetStatus", $hash, 0);
|
InternalTimer(gettimeofday()+$hash->{helper}{OFF_INTERVAL}, "LGTV_IP12_GetStatus", $hash, 0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
return undef;
|
||||||
}
|
}
|
||||||
#############################
|
#############################
|
||||||
# convert all HTML entities into UTF-8 aquivalents
|
# convert all HTML entities into UTF-8 aquivalents
|
||||||
|
Loading…
x
Reference in New Issue
Block a user