2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-03-10 09:16:53 +00:00

10_CUL_HM:correct levelRange at startup

git-svn-id: https://svn.fhem.de/fhem/trunk@14203 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
martinp876 2017-05-05 21:59:16 +00:00
parent ad933d51d9
commit 144c12b054

View File

@ -817,7 +817,7 @@ sub CUL_HM_Attr(@) {#################################
}
elsif($attrName eq "levelRange" ){
if ($cmd eq "set"){
return "use $attrName only for dimmer" if (CUL_HM_Get($defs{$name},$name,"param","subType") ne "dimmer"
return "use $attrName only for dimmer" if ((CUL_HM_Get($defs{$name},$name,"param","subType") ne "dimmer")
&& $init_done );
my ($min,$max) = split (",",$attrVal);
return "use format min,max" if (!defined $max);