98_MSwitch.pm:FIX substitution
git-svn-id: https://svn.fhem.de/fhem/trunk@17399 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
@@ -7183,14 +7183,14 @@ sub MSwitch_dec($$) {
|
||||
my ( $hash, $todec) = @_;
|
||||
my $name = $hash->{NAME};
|
||||
$todec =~ s/\n//g;
|
||||
#$todec =~ s/#\[wa\]/|/g;
|
||||
$todec =~ s/#\[wa\]/|/g;
|
||||
|
||||
|
||||
$todec =~ s/\$NAME/$hash->{helper}{eventfrom}/;
|
||||
|
||||
$todec =~ s/MSwitch_Self/$name/;
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -7361,7 +7361,7 @@ sub MSwitch_makefreecmd($$) {
|
||||
$cs =~ s/#.*\n//g;
|
||||
# entferne zeilenumbruch
|
||||
$cs =~ s/\n//g;
|
||||
|
||||
$cs =~ s/#\[wa\]/|/g;
|
||||
# ersetze Eventvariablen
|
||||
$ersetzung = ReadingsVal( $name, "EVTPART3", "" );
|
||||
$cs =~ s/\$EVTPART3/$ersetzung/g;
|
||||
|
||||
Reference in New Issue
Block a user