diff --git a/fhem/CHANGED b/fhem/CHANGED index 962fbdb27..58e258939 100644 --- a/fhem/CHANGED +++ b/fhem/CHANGED @@ -1,5 +1,7 @@ # Add changes at the top of the list. Keep it in ASCII, and 80-char wide. # Do not insert empty lines here, update check depends on it. + - change: 72_FB_CALLMONITOR: delete stored FRITZ!Box password in + FHEM/uniqueID file upon deletion of a FB_CALLMONITOR definition - feature: TR064Utils.pm added - changed: 88_HMCCU: Improved attributes ccureadingfilter, stripnumber - feature: 89_FULLY: New commands for motion detection and brightness diff --git a/fhem/FHEM/72_FB_CALLMONITOR.pm b/fhem/FHEM/72_FB_CALLMONITOR.pm index 972d77cf0..1b5dfde6e 100755 --- a/fhem/FHEM/72_FB_CALLMONITOR.pm +++ b/fhem/FHEM/72_FB_CALLMONITOR.pm @@ -51,6 +51,7 @@ FB_CALLMONITOR_Initialize($) $hash->{SetFn} = "FB_CALLMONITOR_Set"; $hash->{DefFn} = "FB_CALLMONITOR_Define"; $hash->{RenameFn} = "FB_CALLMONITOR_Rename"; + $hash->{DeleteFn} = "FB_CALLMONITOR_Delete"; $hash->{UndefFn} = "FB_CALLMONITOR_Undef"; $hash->{AttrFn} = "FB_CALLMONITOR_Attr"; $hash->{NotifyFn} = "FB_CALLMONITOR_Notify"; @@ -117,6 +118,20 @@ FB_CALLMONITOR_Undef($$) return undef; } +##################################### +# If Device is deleted, delete the password dataIf Device is renamed, copy the password data +sub +FB_CALLMONITOR_Delete($$) +{ + my ($hash, $name) = @_; + + my $index = "FB_CALLMONITOR_".$name."_passwd"; + + setKeyValue($index, undef); + + return undef; +} + ##################################### # If Device is renamed, copy the password data sub