mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-04-20 01:06:04 +00:00
FHEMWEB: call FW_visibleDevices only if needed
git-svn-id: https://svn.fhem.de/fhem/trunk@5777 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
9dd23b5481
commit
de31655f1f
@ -230,7 +230,7 @@ FW_Undef($$)
|
|||||||
{
|
{
|
||||||
my ($hash, $arg) = @_;
|
my ($hash, $arg) = @_;
|
||||||
my $ret = TcpServer_Close($hash);
|
my $ret = TcpServer_Close($hash);
|
||||||
%FW_visibleDeviceHash = FW_visibleDevices();
|
%FW_visibleDeviceHash = FW_visibleDevices() if($hash->{inform});
|
||||||
return $ret;
|
return $ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -2479,7 +2479,7 @@ sub
|
|||||||
FW_visibleDevices(;$)
|
FW_visibleDevices(;$)
|
||||||
{
|
{
|
||||||
my($FW_wname) = @_;
|
my($FW_wname) = @_;
|
||||||
|
|
||||||
my %devices = ();
|
my %devices = ();
|
||||||
foreach my $d (sort keys %defs) {
|
foreach my $d (sort keys %defs) {
|
||||||
next if(!defined($defs{$d}));
|
next if(!defined($defs{$d}));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user