mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-04-19 18:56:03 +00:00
fheminfo: model patch by justme1968
git-svn-id: https://svn.fhem.de/fhem/trunk@4936 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
30a6f18cb2
commit
aa215ca611
@ -153,7 +153,9 @@ CommandFheminfo($$)
|
||||
foreach my $d (sort keys %defs) {
|
||||
my $n = $defs{$d}{NAME};
|
||||
my $t = $defs{$d}{TYPE};
|
||||
my $m = AttrVal($n,"model","unknown");
|
||||
my $m = "unknown";
|
||||
$m = $defs{$d}{model} if( defined($defs{$d}{model}) );
|
||||
$m = AttrVal($n,"model",$m);
|
||||
if(exists $control_ref->{$t}) {
|
||||
Log 5, "fheminfo name:$n type:$t model:$m";
|
||||
$info{modules}{$t}{$n} = $m;
|
||||
|
Loading…
x
Reference in New Issue
Block a user