mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-05-04 22:19:38 +00:00
Allow deletion of global attributes
git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@1588 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
74f5268d9d
commit
2b4e4a2a2b
6
fhem.pl
6
fhem.pl
@ -193,7 +193,7 @@ $modules{Global}{AttrList} =
|
|||||||
"archivecmd allowfrom apiversion archivedir configfile lastinclude logfile " .
|
"archivecmd allowfrom apiversion archivedir configfile lastinclude logfile " .
|
||||||
"modpath nrarchive pidfilename port statefile title userattr " .
|
"modpath nrarchive pidfilename port statefile title userattr " .
|
||||||
"verbose:1,2,3,4,5 mseclog version nofork logdir holiday2we " .
|
"verbose:1,2,3,4,5 mseclog version nofork logdir holiday2we " .
|
||||||
"autoload_undefined_devices dupTimeout latitude longitude backupdir";
|
"autoload_undefined_devices dupTimeout latitude longitude backupdir";
|
||||||
$modules{Global}{AttrFn} = "GlobalAttr";
|
$modules{Global}{AttrFn} = "GlobalAttr";
|
||||||
|
|
||||||
|
|
||||||
@ -1407,10 +1407,6 @@ CommandDeleteAttr($$)
|
|||||||
my @rets;
|
my @rets;
|
||||||
foreach my $sdev (devspec2array($a[0])) {
|
foreach my $sdev (devspec2array($a[0])) {
|
||||||
|
|
||||||
if($sdev eq "global") {
|
|
||||||
push @rets, "Cannot delete global parameters";
|
|
||||||
next;
|
|
||||||
}
|
|
||||||
if(!defined($defs{$sdev})) {
|
if(!defined($defs{$sdev})) {
|
||||||
push @rets, "Please define $sdev first";
|
push @rets, "Please define $sdev first";
|
||||||
next;
|
next;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user