LightScene: move global userattr to device userattr (Forum #27451)

git-svn-id: https://svn.fhem.de/fhem/trunk@6667 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
justme1968
2014-10-03 19:55:50 +00:00
parent f0f26948df
commit dbad4db1c6

View File

@@ -34,9 +34,6 @@ sub LightScene_Initialize($)
$hash->{FW_detailFn} = "LightScene_detailFn";
$data{FWEXT}{"/LightScene"}{FUNC} = "LightScene_CGI"; #mod
addToAttrList("lightSceneParamsToSave");
addToAttrList("lightSceneRestoreOnlyIfChanged:1,0");
eval "use JSON";
$LightScene_hasJSON = 0 if($@);
@@ -64,6 +61,9 @@ sub LightScene_Define($$)
foreach my $a (@args) {
foreach my $d (devspec2array($a)) {
$list{$d} = 1;
addToDevAttrList( $d, "lightSceneParamsToSave" );
addToDevAttrList( $d, "lightSceneRestoreOnlyIfChanged:1,0" );
}
}
$hash->{CONTENT} = \%list;