mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-03-03 16:56:54 +00:00
98_fheminfo.pm: ignore models for some more modules
git-svn-id: https://svn.fhem.de/fhem/trunk@14662 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
ede399f834
commit
2141b0f3bc
@ -27,8 +27,9 @@ use HttpUtils;
|
|||||||
my $c_system = 'system';
|
my $c_system = 'system';
|
||||||
my $c_noModel = 'noModel';
|
my $c_noModel = 'noModel';
|
||||||
|
|
||||||
my %fhemInfo = ();
|
my %fhemInfo = ();
|
||||||
my @ignoreList = qw(Global);
|
my @ignoreList = qw(Global);
|
||||||
|
my @noModelList = qw(knx dummy at archetype weather pushover twilight hminfo readingsgroup);
|
||||||
|
|
||||||
sub fheminfo_Initialize($$) {
|
sub fheminfo_Initialize($$) {
|
||||||
my %hash = (
|
my %hash = (
|
||||||
@ -113,9 +114,11 @@ sub _fi2_Count() {
|
|||||||
$model = _fi2_zwave($model);
|
$model = _fi2_zwave($model);
|
||||||
}
|
}
|
||||||
|
|
||||||
# 5. ignore model for KNX
|
# 5. ignore model for some modules
|
||||||
$model = $c_noModel if (lc($type) eq 'knx');
|
foreach my $i (@noModelList) {
|
||||||
|
$model = $c_noModel if (lc($type) eq $i);
|
||||||
|
}
|
||||||
|
|
||||||
# 6. check if model is a scalar
|
# 6. check if model is a scalar
|
||||||
$model = $c_noModel if (ref $model);
|
$model = $c_noModel if (ref $model);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user