2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-03-03 04:36:36 +00:00

CUL_HM:allow re-write of system attribtues with identical value

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

View File

@ -837,10 +837,11 @@ sub CUL_HM_Attr(@) {#################################
CUL_HM_UpdtCentral($name);
}
else{
return "$attrName must not be changed by User. \nUse modelForce instead" if ($init_done);
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
CUL_HM_updtDeviceModel($name,$attrVal) if($init_done);
}
$attr{$name}{$attrName} = $attrVal if ($cmd eq "set");
}
@ -863,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);
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" ){