2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-02-07 16:59:18 +00:00

CUL_HM:bug - typo. sorry

git-svn-id: https://svn.fhem.de/fhem/trunk@22355 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
martinp876 2020-07-05 18:54:16 +00:00
parent 3a53bd92cd
commit 5be30bbc99

View File

@ -837,7 +837,7 @@ sub CUL_HM_Attr(@) {#################################
CUL_HM_UpdtCentral($name);
}
else{
return "$attrName must not be changed by User. \nUse modelForce instead" if ($init_done && AttrVal($name,$attrName,"empty") != m/(empty|$attrVal)/);
return "$attrName must not be changed by User. \nUse modelForce instead" if ($init_done && AttrVal($name,$attrName,"empty") !~ m/(empty|$attrVal)/);
delete $hash->{helper}{rxType}; # needs new calculation
delete $hash->{helper}{mId};
CUL_HM_hmInitMsg($hash);# will update mId, rxType and others
@ -864,7 +864,7 @@ sub CUL_HM_Attr(@) {#################################
return "$attrName must not be changed by User. \nUse modelForce instead" if ($init_done);
}
elsif($attrName eq "subType"){
return "$attrName must not be changed by User. \nUse modelForce instead" if ($init_done && AttrVal($name,$attrName,"empty") != m/(empty|$attrVal)/);
return "$attrName must not be changed by User. \nUse modelForce instead" if ($init_done && AttrVal($name,$attrName,"empty") !~ m/(empty|$attrVal)/);
$updtReq = 1;
}
elsif($attrName eq "aesCommReq" ){