98_fheminfo.pm: code cleanup after last changes

git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@25077 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
betateilchen 2021-10-16 10:15:07 +00:00
parent cbfca1214f
commit 5aa02717e0

View File

@ -96,10 +96,8 @@ sub _fi2_Count {
my $model = $c_noModel;
# 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) {
# 3. look for model information in attributes
@ -131,7 +129,6 @@ sub _fi2_Count {
# 7. check if model is a scalar
$model = $c_noModel if (ref($model) eq 'HASH');
# 8. skip for some special cases found in database
next if ( ($model =~ /^unkno.*/i) ||
($model =~ /virtual.*/i) ||