diff --git a/FHEM/55_InfoPanel.pm b/FHEM/55_InfoPanel.pm index 855865255..f56065f4d 100644 --- a/FHEM/55_InfoPanel.pm +++ b/FHEM/55_InfoPanel.pm @@ -497,16 +497,13 @@ sub btIP_itemLine { sub btIP_itemLongpoll { my ($id,$x,$y,$text,%params)= @_; - my ($iconURL,$color); - unless (defined($text)) { - my ($iconName,undef,undef) = FW_dev2image($id); - $iconURL = FW_IconURL($iconName); - } else { - $color = substr($params{rgb},0,6); - } + my ($iconName,undef,undef) = FW_dev2image($id); + my $iconURL = FW_IconURL($iconName); + my $color = substr($params{rgb},0,6); my $output = "
\n"; + $output .= "$text\n" if defined($text); $output .= "\n" unless defined($text); $output .= "
\n";