fix uninitialized value $iodev in hash element line 221

This commit is contained in:
Marko Oldenburg 2021-11-27 09:52:55 +01:00
parent 5b268a4d9c
commit c21bd2479a
2 changed files with 7 additions and 5 deletions

View File

@ -1,4 +1,4 @@
UPD 2021-11-26_17:16:05 9207 FHEM/73_NUKIBridge.pm UPD 2021-11-27_08:19:45 9207 FHEM/73_NUKIBridge.pm
UPD 2021-11-26_18:16:04 7548 FHEM/74_NUKIDevice.pm UPD 2021-11-27_08:19:45 7548 FHEM/74_NUKIDevice.pm
UPD 2021-11-26_19:31:40 35495 lib/FHEM/Devices/Nuki/Bridge.pm UPD 2021-11-27_08:19:45 35495 lib/FHEM/Devices/Nuki/Bridge.pm
UPD 2021-11-26_18:46:30 15635 lib/FHEM/Devices/Nuki/Device.pm UPD 2021-11-27_09:51:08 15681 lib/FHEM/Devices/Nuki/Device.pm

View File

@ -218,7 +218,9 @@ sub Define {
$iodev = $hash->{IODev}->{NAME}; $iodev = $hash->{IODev}->{NAME};
$hash->{BRIDGEAPI} = $::defs{$iodev}->{BRIDGEAPI}; $hash->{BRIDGEAPI} = $::defs{$iodev}->{BRIDGEAPI}
if ( defined(iodev)
&& $iodev );
my $d = $::modules{NUKIDevice}{defptr}{$nukiId}; my $d = $::modules{NUKIDevice}{defptr}{$nukiId};