diff --git a/fhem/FHEM/55_InfoPanel.pm b/fhem/FHEM/55_InfoPanel.pm index be667dd79..32d068874 100644 --- a/fhem/FHEM/55_InfoPanel.pm +++ b/fhem/FHEM/55_InfoPanel.pm @@ -155,7 +155,7 @@ sub InfoPanel_Initialize { $hash->{AttrList} .= "title noscript showTime:1,0 "; $hash->{AttrList} .= " bgcenter:1,0 bgdir bgopacity tmin" if $useImgTools; - return undef; + return; } sub btIP_Define { @@ -173,7 +173,7 @@ sub btIP_Define { btIP_readLayout($hash); readingsSingleUpdate($hash,'state','defined',1); - return undef; + return; } sub btIP_Undef { @@ -181,7 +181,7 @@ sub btIP_Undef { # check if last device my $url = '/btip'; delete $data{FWEXT}{$url} if int(devspec2array('TYPE=InfoPanel')) == 1; - return undef; + return; } sub btIP_Set { @@ -254,7 +254,7 @@ sub btIP_Notify { Log3(undef, 4, "InfoPanel: $hash->{NAME} reread layout after edit."); undef = btIP_readLayout($hash); - return undef; + return; } sub btIP_readLayout { diff --git a/fhem/FHEM/98_GoogleAuth.pm b/fhem/FHEM/98_GoogleAuth.pm index e5a040e87..f96d5af19 100644 --- a/fhem/FHEM/98_GoogleAuth.pm +++ b/fhem/FHEM/98_GoogleAuth.pm @@ -106,7 +106,7 @@ sub GoogleAuth_Define { Log3($hash,4,"googleAuth $name: defined"); readingsSingleUpdate($hash,'state','defined',1); - return undef; + return; } sub GoogleAuth_Delete { @@ -133,7 +133,7 @@ sub GoogleAuth_Set { } else { return $usage } - return undef; + return; } sub GoogleAuth_Get { @@ -194,7 +194,7 @@ sub _ga_make_url { $label =~ s/\s/\%20/g; my $qrsize = AttrVal($name,'ga_qrSize','200x200'); my $secret_base32 = getKeyValue("googleAuth$name"); - return undef unless defined($secret_base32); + return unless defined($secret_base32); my $url = "otpauth://totp/$label?secret=$secret_base32&issuer=FHEM"; my $qr_url = "https://chart.googleapis.com/chart?cht=qr&chs=$qrsize"."&chl="; $qr_url .= uri_escape($url);