mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-05-04 22:19:38 +00:00
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:
parent
a68750a948
commit
48b4bec5dc
@ -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?
|
||||||
|
Loading…
x
Reference in New Issue
Block a user