From 4f981c65b059e6bf83609c2f9e5e19f5ab03774b Mon Sep 17 00:00:00 2001 From: betateilchen <> Date: Tue, 20 Oct 2020 07:43:36 +0000 Subject: [PATCH] configDB.pm: fix exclusion list for attributes in save git-svn-id: https://svn.fhem.de/fhem/trunk@22992 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/configDB.pm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/fhem/configDB.pm b/fhem/configDB.pm index 59fb8046e..004da5fd4 100644 --- a/fhem/configDB.pm +++ b/fhem/configDB.pm @@ -452,6 +452,7 @@ sub cfgDB_SaveCfg { ## prototype used in fhem.pl my ($internal) = shift; $internal = defined($internal) ? $internal : 0; + my $c = "configdb"; my @dontSave = qw(configdb:rescue configdb:nostate configdb:loadversion global:configfile global:version); my (%devByNr, @rowList, %comments, $t, $out); @@ -483,8 +484,9 @@ sub cfgDB_SaveCfg { ## prototype used in fhem.pl foreach my $a (sort keys %{$configDB{attr}}) { my $val = $configDB{attr}{$a}; next unless $val; + next if grep {$_ eq "$c:$a";} @dontSave; $val =~ s/;/;;/g; - push @rowList, "attr configdb $a $val"; + push @rowList, "attr $c $a $val"; } # Insert @rowList into database table