2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-04-08 07:24:21 +00:00

return nothing from set scene if none of the devices return anything

git-svn-id: https://svn.fhem.de/fhem/trunk@3210 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
justme-1968 2013-05-22 20:23:31 +00:00
parent c742860c92
commit d0e95a74d1

View File

@ -233,7 +233,8 @@ LightScene_Set($@)
} elsif ( $cmd eq "scene" ) {
$hash->{STATE} = $scene;
$ret .= " ". CommandSet(undef,"$d $hash->{SCENES}{$scene}{$d}");
$ret .= " " if( $ret );
$ret .= CommandSet(undef,"$d $hash->{SCENES}{$scene}{$d}");
} else {
$ret = "Unknown argument $cmd, choose one of save scene";
}