From ae5b3713e1c2aa941efc80dfcf647fe3f29d83fb Mon Sep 17 00:00:00 2001 From: justme-1968 Date: Mon, 22 Dec 2014 09:49:39 +0000 Subject: [PATCH] 34_SWAP.pm: use CommandAttr instead of SWAP_Attr git-svn-id: https://svn.fhem.de/fhem/trunk@7303 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/FHEM/34_SWAP.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fhem/FHEM/34_SWAP.pm b/fhem/FHEM/34_SWAP.pm index 771ed81b0..dceeab158 100755 --- a/fhem/FHEM/34_SWAP.pm +++ b/fhem/FHEM/34_SWAP.pm @@ -988,7 +988,7 @@ SWAP_Parse($$) my $productcode = $data; my $first = !defined($rhash->{"SWAP_00-ProductCode"}) || $rhash->{"SWAP_00-ProductCode"} ne $productcode; - SWAP_Attr( "set", $rname, "ProductCode", $productcode ) if( $first ); + CommandAttr(undef, "$rname ProductCode $productcode") if( $first ); CommandSave(undef,undef) if( $first && AttrVal( "autocreate", "autosave", 1 ) ); if( !defined($products->{$productcode}->{registers}) ){