2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-02-07 16:59:18 +00:00

autocreate: preserve room for createlog

git-svn-id: https://svn.fhem.de/fhem/trunk@3651 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig 2013-08-09 18:19:13 +00:00
parent be9218fca9
commit bdf6e8b636

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