From 8003f5698771a372718966fc1b50a704d2b3e62a Mon Sep 17 00:00:00 2001 From: martinp876 <> Date: Sat, 15 Aug 2020 14:16:10 +0000 Subject: [PATCH] CUL_HM:Press defaults to short if not argument is passed git-svn-id: https://svn.fhem.de/fhem/trunk@22609 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/FHEM/10_CUL_HM.pm | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/fhem/FHEM/10_CUL_HM.pm b/fhem/FHEM/10_CUL_HM.pm index 190185cec..6d9d8e30d 100755 --- a/fhem/FHEM/10_CUL_HM.pm +++ b/fhem/FHEM/10_CUL_HM.pm @@ -6044,10 +6044,9 @@ sub CUL_HM_Set($@) {#+++++++++++++++++ set command+++++++++++++++++++++++++++++ } else{ if (defined $a[2]){ - if ($a[2] eq "long") {$type = "L"} - elsif($a[2] eq "short"){$type = "S"} - else {return "use either short or long"} - splice @a,2,1; # remove long/short + if ($a[2] eq "long") {$type = "L";splice @a,2,1;} + elsif($a[2] eq "short"){$type = "S";splice @a,2,1;} + # remove long/short } }