diff --git a/fhem/FHEM/21_OWLCD.pm b/fhem/FHEM/21_OWLCD.pm index 1594f601b..6b16cdcf7 100644 --- a/fhem/FHEM/21_OWLCD.pm +++ b/fhem/FHEM/21_OWLCD.pm @@ -172,12 +172,9 @@ sub OWLCD_Define ($$) { #-- Couple to I/O device AssignIoPort($hash); - if( (!defined($hash->{IODev}->{NAME})) || (!defined($hash->{IODev})) || (!defined($hash->{IODev}->{PRESENT})) ){ + if( !defined($hash->{IODev}->{NAME}) | !defined($hash->{IODev}) ) { return "OWSWITCH: Warning, no 1-Wire I/O device found for $name."; } - if( $hash->{IODev}->{PRESENT} != 1 ){ - return "OWSWITCH: Warning, 1-Wire I/O device ".$hash->{IODev}->{NAME}." not present for $name."; - } $modules{OWLCD}{defptr}{$id} = $hash; $hash->{STATE} = "Defined";