Allow deletion of global attributes

git-svn-id: svn://svn.code.sf.net/p/fhem/code/trunk@1588 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig
2012-05-26 08:28:11 +00:00
parent ecf924428f
commit 08f4f77a2c

View File

@@ -193,7 +193,7 @@ $modules{Global}{AttrList} =
"archivecmd allowfrom apiversion archivedir configfile lastinclude logfile " .
"modpath nrarchive pidfilename port statefile title userattr " .
"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";
@@ -1407,10 +1407,6 @@ CommandDeleteAttr($$)
my @rets;
foreach my $sdev (devspec2array($a[0])) {
if($sdev eq "global") {
push @rets, "Cannot delete global parameters";
next;
}
if(!defined($defs{$sdev})) {
push @rets, "Please define $sdev first";
next;