mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-03-10 09:16:53 +00:00
14_CUL_WS.pm: check the ignoreTypes attribute of autocreate (Forum #36813)
git-svn-id: https://svn.fhem.de/fhem/trunk@18128 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
cd2c867681
commit
ca66c6ba87
@ -117,6 +117,11 @@ CUL_WS_Parse($$)
|
||||
my $def = $modules{CUL_WS}{defptr}{$hash->{NAME} . "." . $cde};
|
||||
$def = $modules{CUL_WS}{defptr}{$cde} if(!$def);
|
||||
if(!$def) {
|
||||
my @ac = grep { $defs{$_}{TYPE} eq "autocreate" } keys %defs;
|
||||
if(@ac) {
|
||||
my $acit = AttrVal($ac[0], "ignoreTypes", "");
|
||||
return "" if("CUL_WS_$cde" =~ m/$acit/);
|
||||
}
|
||||
Log3 $hash, 1, "CUL_WS UNDEFINED $type sensor detected, code $cde";
|
||||
return "UNDEFINED CUL_WS_$cde CUL_WS $cde";
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user