diff --git a/fhem/FHEM/76_SolarForecast.pm b/fhem/FHEM/76_SolarForecast.pm index 3de7e7770..4fc637094 100644 --- a/fhem/FHEM/76_SolarForecast.pm +++ b/fhem/FHEM/76_SolarForecast.pm @@ -652,8 +652,6 @@ my %hrepl = ( # Z '.' => 'k', ); -my @hreplkeys = keys %hrepl; - my %hqtxt = ( # Hash (Setup) Texte entry => { EN => qq{Warm welcome!
The next queries will guide you through the basic installation.
@@ -14241,10 +14239,13 @@ sub _flowGraphic { my $scale = $fgscaledef; my $pdist = 130; # Abstand Producer zueinander my $hasbat = 1; # initial Batterie vorhanden + my $stna = $name; + my ($lcp, $y_pos, $y_pos1); - my $stna = $name; - $stna =~ s/([@hreplkeys])/$hrepl{$1}/ge if($name =~ /[@hreplkeys]/xs); # V 1.37.1 Ziffern etc. eliminieren, Forum: https://forum.fhem.de/index.php?msg=1323229 + for my $re (keys %hrepl) { # V 1.37.1 Ziffern etc. eliminieren, Forum: https://forum.fhem.de/index.php?msg=1323229 + $stna =~ s/$re/$hrepl{$re}/gxs; + } ## definierte Producer + Inverter ermitteln und zusammenfassen ################################################################ diff --git a/fhem/contrib/DS_Starter/76_SolarForecast.pm b/fhem/contrib/DS_Starter/76_SolarForecast.pm index 3de7e7770..4fc637094 100644 --- a/fhem/contrib/DS_Starter/76_SolarForecast.pm +++ b/fhem/contrib/DS_Starter/76_SolarForecast.pm @@ -652,8 +652,6 @@ my %hrepl = ( # Z '.' => 'k', ); -my @hreplkeys = keys %hrepl; - my %hqtxt = ( # Hash (Setup) Texte entry => { EN => qq{Warm welcome!
The next queries will guide you through the basic installation.
@@ -14241,10 +14239,13 @@ sub _flowGraphic { my $scale = $fgscaledef; my $pdist = 130; # Abstand Producer zueinander my $hasbat = 1; # initial Batterie vorhanden + my $stna = $name; + my ($lcp, $y_pos, $y_pos1); - my $stna = $name; - $stna =~ s/([@hreplkeys])/$hrepl{$1}/ge if($name =~ /[@hreplkeys]/xs); # V 1.37.1 Ziffern etc. eliminieren, Forum: https://forum.fhem.de/index.php?msg=1323229 + for my $re (keys %hrepl) { # V 1.37.1 Ziffern etc. eliminieren, Forum: https://forum.fhem.de/index.php?msg=1323229 + $stna =~ s/$re/$hrepl{$re}/gxs; + } ## definierte Producer + Inverter ermitteln und zusammenfassen ################################################################