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

send always an external_name reading (also in "unknown" and "timeout" cases)

git-svn-id: https://svn.fhem.de/fhem/trunk@2235 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
markusbloch 2012-12-01 01:07:00 +00:00
parent 99f29459b1
commit 8f02474fb2

View File

@ -231,7 +231,7 @@ if(AttrVal($name, "reverse-search", "none") eq "all" or AttrVal($name, "reverse-
if(AttrVal($name, "reverse-search-cache", "0") eq "1") if(AttrVal($name, "reverse-search-cache", "0") eq "1")
{ {
$hash->{helper}{CACHE}{$number} = "timeout"; $hash->{helper}{CACHE}{$number} = "timeout";
return undef; return "timeout";
} }
} }
else else
@ -256,7 +256,7 @@ if(AttrVal($name, "reverse-search", "none") eq "all" or AttrVal($name, "reverse-
if(AttrVal($name, "reverse-search-cache", "0") eq "1") if(AttrVal($name, "reverse-search-cache", "0") eq "1")
{ {
$hash->{helper}{CACHE}{$number} = "timeout"; $hash->{helper}{CACHE}{$number} = "timeout";
return undef; return "timeout";
} }
} }
@ -276,7 +276,7 @@ if(AttrVal($name, "reverse-search", "none") eq "all" or AttrVal($name, "reverse-
# If no result is available set cache result and return undefined # If no result is available set cache result and return undefined
$hash->{helper}{CACHE}{$number} = "unknown"; $hash->{helper}{CACHE}{$number} = "unknown";
return undef return "unknown";
} }