condition and log output for bug no name given in readingsBeginUpdate

This commit is contained in:
2020-11-09 07:07:15 +01:00
parent 9eda91cac1
commit cd080e1d4d
2 changed files with 11 additions and 9 deletions

View File

@ -1052,13 +1052,15 @@ sub ShuttersCommandSet {
## Sub welche die InternalTimer nach entsprechenden Sunset oder Sunrise zusammen stellt
sub CreateSunRiseSetShuttersTimer {
my $hash = shift;
my $hash = shift;
my $shuttersDev = shift // return Log3( $hash->{NAME}, 1,
"AutoShuttersControl ($hash->{NAME}) - Error in function CreateSunRiseSetShuttersTimer. No shuttersDev given"
);
my $name = $hash->{NAME};
my $shuttersDevHash = $defs{$shuttersDev};
my $shuttersDevHash = $defs{$shuttersDev} // Log3( $hash->{NAME}, 1,
"AutoShuttersControl ($hash->{NAME}) - Error in function CreateSunRiseSetShuttersTimer. No shuttersDevHash given"
);
my %funcHash;
$shutters->setShuttersDev($shuttersDev);