mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-04-22 14:16:42 +00:00
98_MSwitch.pm:Fix - Fix Perl warning / change include webcmds
git-svn-id: https://svn.fhem.de/fhem/trunk@19167 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
9a7e0b91f2
commit
4bf47825f6
@ -3101,8 +3101,7 @@ sub MSwitch_checkbridge($$$) {
|
||||
}
|
||||
|
||||
MSwitch_LOG( $name, 6, "suche nach schlüssel:-$event-" );
|
||||
MSwitch_LOG( $name, 6,
|
||||
"helper eventoid : " . $hash->{helper}{eventtoid}{$foundkey} );
|
||||
MSwitch_LOG( $name, 6, "helper eventoid : " . $hash->{helper}{eventtoid}{$foundkey} ) if ($hash->{helper}{eventtoid}{$foundkey});
|
||||
|
||||
return "no_bridge" if $expertmode eq "0";
|
||||
return "no_bridge" if $bridgemode eq "0";
|
||||
@ -3601,8 +3600,10 @@ sub MSwitch_fhemwebFn($$$$) {
|
||||
$errors =~ s/\| //g;
|
||||
$errors =~ s/\|//g;
|
||||
|
||||
if ( $errors eq ''
|
||||
&& AttrVal( $Name, 'MSwitch_Include_Webcmds', "1" ) eq '1' )
|
||||
# if ( $errors eq '' && AttrVal( $Name, 'MSwitch_Include_Webcmds', "1" ) eq '1' )
|
||||
if ( AttrVal( $Name, 'MSwitch_Include_Webcmds', "1" ) eq '1' )
|
||||
|
||||
|
||||
{
|
||||
if ( $devicewebcmd ne "noArg" ) {
|
||||
my $device = '';
|
||||
@ -3619,7 +3620,7 @@ sub MSwitch_fhemwebFn($$$$) {
|
||||
}
|
||||
chop $device;
|
||||
$devicewebcmd = $device;
|
||||
$errors = $devicewebcmd;
|
||||
$errors .= ' ' . $devicewebcmd;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user