diff --git a/fhem/FHEM/82_LGTV_IP12.pm b/fhem/FHEM/82_LGTV_IP12.pm index 10e534abb..5ddd06d2e 100755 --- a/fhem/FHEM/82_LGTV_IP12.pm +++ b/fhem/FHEM/82_LGTV_IP12.pm @@ -117,6 +117,7 @@ LGTV_IP12_Initialize($) $hash->{DefFn} = "LGTV_IP12_Define"; $hash->{DeleteFn} = "LGTV_IP12_Delete"; + $hash->{UndefFn} = "LGTV_IP12_Undef"; $hash->{SetFn} = "LGTV_IP12_Set"; $hash->{GetFn} = "LGTV_IP12_Get"; $hash->{AttrFn} = "LGTV_IP12_Attr"; @@ -353,6 +354,16 @@ LGTV_IP12_Delete($$) LGTV_IP12_HttpGet($hash, "/udap/api/pairing", "removePairing", undef, "byebye8080") if(exists($hash->{helper}{PAIRED}) and $hash->{helper}{PAIRED} == 1); } +################################# +sub +LGTV_IP12_Undef($$) +{ + my ($hash, $name) = @_; + + RemoveInternalTimer($hash); +} + + ############################################################################################################ # # Begin of helper functions