mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-05-01 20:20:10 +00:00
98_fheminfo.pm: code cleanup after last changes
git-svn-id: https://svn.fhem.de/fhem/trunk@25077 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
083ffffd7b
commit
d582bda72c
@ -96,10 +96,8 @@ sub _fi2_Count {
|
|||||||
my $model = $c_noModel;
|
my $model = $c_noModel;
|
||||||
|
|
||||||
# 2. look for model information in internals
|
# 2. look for model information in internals
|
||||||
# unless (lc($type) eq 'knx') {
|
$model = defined($defs{$key}{model}) ? $defs{$key}{model} : $model;
|
||||||
$model = defined($defs{$key}{model}) ? $defs{$key}{model} : $model;
|
$model = defined($defs{$key}{MODEL}) ? $defs{$key}{MODEL} : $model;
|
||||||
$model = defined($defs{$key}{MODEL}) ? $defs{$key}{MODEL} : $model;
|
|
||||||
# }
|
|
||||||
|
|
||||||
if ($model eq $c_noModel) {
|
if ($model eq $c_noModel) {
|
||||||
# 3. look for model information in attributes
|
# 3. look for model information in attributes
|
||||||
@ -131,7 +129,6 @@ sub _fi2_Count {
|
|||||||
# 7. check if model is a scalar
|
# 7. check if model is a scalar
|
||||||
$model = $c_noModel if (ref($model) eq 'HASH');
|
$model = $c_noModel if (ref($model) eq 'HASH');
|
||||||
|
|
||||||
|
|
||||||
# 8. skip for some special cases found in database
|
# 8. skip for some special cases found in database
|
||||||
next if ( ($model =~ /^unkno.*/i) ||
|
next if ( ($model =~ /^unkno.*/i) ||
|
||||||
($model =~ /virtual.*/i) ||
|
($model =~ /virtual.*/i) ||
|
||||||
|
Loading…
x
Reference in New Issue
Block a user