mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-04-21 07:56:03 +00:00
precise error-report for templist setting
git-svn-id: https://svn.fhem.de/fhem/trunk@4669 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
8ad1824daa
commit
bbe5f8d5b7
@ -3100,7 +3100,8 @@ sub CUL_HM_Set($@) {
|
||||
splice @a,2,1;#remove prep
|
||||
}
|
||||
return "To few arguments" if(@a < 4);
|
||||
return "To many arguments, max 24 pairs" if(@a > (($md =~ m/HM-CC-RT-DN/)?28:50));
|
||||
return "To many arguments, max 13 pairs" if(@a > 28 && $md =~ m/HM-CC-RT-DN/);
|
||||
return "To many arguments, max 24 pairs" if(@a > 50 && $md !~ m/HM-CC-RT-DN/);
|
||||
return "Bad format, use HH:MM TEMP ..." if(@a % 2);
|
||||
return "Last time spec must be 24:00" if($a[@a-2] ne "24:00");
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user