From 2141b0f3bc3811f02157554ecbcd0131334a42b4 Mon Sep 17 00:00:00 2001 From: betateilchen <> Date: Fri, 7 Jul 2017 16:53:28 +0000 Subject: [PATCH] 98_fheminfo.pm: ignore models for some more modules git-svn-id: https://svn.fhem.de/fhem/trunk@14662 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/FHEM/98_fheminfo.pm | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/fhem/FHEM/98_fheminfo.pm b/fhem/FHEM/98_fheminfo.pm index c3c530cd3..968d3d410 100644 --- a/fhem/FHEM/98_fheminfo.pm +++ b/fhem/FHEM/98_fheminfo.pm @@ -27,8 +27,9 @@ use HttpUtils; my $c_system = 'system'; my $c_noModel = 'noModel'; -my %fhemInfo = (); -my @ignoreList = qw(Global); +my %fhemInfo = (); +my @ignoreList = qw(Global); +my @noModelList = qw(knx dummy at archetype weather pushover twilight hminfo readingsgroup); sub fheminfo_Initialize($$) { my %hash = ( @@ -113,9 +114,11 @@ sub _fi2_Count() { $model = _fi2_zwave($model); } -# 5. ignore model for KNX - $model = $c_noModel if (lc($type) eq 'knx'); - +# 5. ignore model for some modules + foreach my $i (@noModelList) { + $model = $c_noModel if (lc($type) eq $i); + } + # 6. check if model is a scalar $model = $c_noModel if (ref $model);