mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-03-10 03:06:37 +00:00
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:
parent
2748ec06bd
commit
8d9b497de6
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user