mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-03-03 16:56:54 +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:
parent
6bdf6f3899
commit
3a53bd92cd
@ -837,10 +837,11 @@ sub CUL_HM_Attr(@) {#################################
|
|||||||
CUL_HM_UpdtCentral($name);
|
CUL_HM_UpdtCentral($name);
|
||||||
}
|
}
|
||||||
else{
|
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}{rxType}; # needs new calculation
|
||||||
delete $hash->{helper}{mId};
|
delete $hash->{helper}{mId};
|
||||||
CUL_HM_hmInitMsg($hash);# will update mId, rxType and others
|
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");
|
$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);
|
return "$attrName must not be changed by User. \nUse modelForce instead" if ($init_done);
|
||||||
}
|
}
|
||||||
elsif($attrName eq "subType"){
|
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;
|
$updtReq = 1;
|
||||||
}
|
}
|
||||||
elsif($attrName eq "aesCommReq" ){
|
elsif($attrName eq "aesCommReq" ){
|
||||||
|
Loading…
x
Reference in New Issue
Block a user