autocreate: preserve room for createlog

git-svn-id: svn://svn.code.sf.net/p/fhem/code/trunk@3651 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig
2013-08-09 18:19:13 +00:00
parent 9b2118f5a8
commit 4a269c5fd9

View File

@@ -170,6 +170,8 @@ autocreate_Notify($$)
$hash = $defs{$name};
$nrcreated++;
my $room = replace_wildcards($hash, AttrVal($me, "device_room", "%TYPE"));
# preserve room for createlog
$room = $attr{$name}{room} if($attr{$name} && $attr{$name}{room});
$attr{$name}{room} = $room if($room);
# BlackList processing