cleanup code

This commit is contained in:
Sebastian
2021-06-28 10:27:23 +02:00
parent 71ef5799c2
commit 113dec6551
2 changed files with 2 additions and 2 deletions

View File

@ -515,7 +515,7 @@ sub ErrorHandling {
my $name = $hash->{NAME};
my $dhash = $hash;
$dhash = $modules{GardenaSmartDevice}{defptr}{ $param->{'device_id'} } if ( length($data) > 0 );
$dhash = $modules{GardenaSmartDevice}{defptr}{ $param->{'device_id'} };
if ( defined( $param->{'device_id'} ) );
my $dname = $dhash->{NAME};