36_KeyValueProtocol: patch from "habeIchVergessen" (Forum: #67134)

git-svn-id: https://svn.fhem.de/fhem/trunk@13429 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
HCS 2017-02-18 11:46:50 +00:00
parent a68750a948
commit 48b4bec5dc

View File

@ -132,8 +132,9 @@ sub KeyValueProtocol_Parse($$) {
my %mappings; my %mappings;
# our "Mapping" attribute has priority # our "Mapping" attribute has priority
my $mappingsString = AttrVal($rname, "Mapping", ""); my $mappingsString = AttrVal($rname, "Mapping", "");
$mappingsString = InternalVal($rname, AttrVal($rname, "IODev", "") . "_Mapping", "") if (!$mappingsString);
if ($mappingsString) { if ($mappingsString) {
%mappings = split (/[,=]/, AttrVal($rname, "Mapping", "")); %mappings = split (/[,=]/, $mappingsString);
} }
else { else {
# Do we have initMessages in the IODevice? # Do we have initMessages in the IODevice?