send always an external_name reading (also in "unknown" and "timeout" cases)
git-svn-id: https://fhem.svn.sourceforge.net/svnroot/fhem/trunk/fhem@2235 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
@@ -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";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user