mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-04-29 05:24:10 +00:00
FB_CALLLIST: delete the stored list from file via setKeyValue when executing set command "clear"
git-svn-id: https://svn.fhem.de/fhem/trunk@9363 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
dc9bdf87e0
commit
69b9246319
@ -282,6 +282,9 @@ sub FB_CALLLIST_Set($@)
|
||||
# Inform all FHEMWEB clients
|
||||
FB_CALLLIST_updateFhemWebClients($hash);
|
||||
|
||||
# Delete stored list
|
||||
FB_CALLLIST_saveList($hash);
|
||||
|
||||
return undef;
|
||||
}
|
||||
else
|
||||
@ -775,6 +778,12 @@ sub FB_CALLLIST_saveList($)
|
||||
|
||||
my $err = setKeyValue("FB_CALLLIST-$name", $dump);
|
||||
|
||||
Log3 $name, 3, "FB_CALLLIST ($name) - error while saving the current call list: $err" if(defined($err));
|
||||
}
|
||||
else
|
||||
{
|
||||
my $err = setKeyValue("FB_CALLLIST-$name", undef);
|
||||
|
||||
Log3 $name, 3, "FB_CALLLIST ($name) - error while saving the current call list: $err" if(defined($err));
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user