2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-01-31 12:49:34 +00:00

93_PWMR.pm : Fix startup Fehler mit Attribut desiredTempFrom

git-svn-id: https://svn.fhem.de/fhem/trunk@25820 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
jamesgo 2022-03-13 01:30:21 +00:00
parent e5c5adcc96
commit 2f1a4daf75

View File

@ -63,6 +63,7 @@
# add clear PID helper structure when PWM or PWMR object gets disabled # add clear PID helper structure when PWM or PWMR object gets disabled
# 31.01.21 GA fix wrong time logged for "desired-temp was manualy set until" # 31.01.21 GA fix wrong time logged for "desired-temp was manualy set until"
# 02.02.21 GA fix handle access to not yet defined iodev on startup # 02.02.21 GA fix handle access to not yet defined iodev on startup
# 13.03.22 GA fix handle error in attr desiredTempFrom when device is not yet defined during startup
# module for PWM (Pulse Width Modulation) calculation # module for PWM (Pulse Width Modulation) calculation
# this module defines a room for calculation # this module defines a room for calculation
@ -1644,7 +1645,12 @@ PWMR_Attr(@)
# check if device exist # check if device exist
unless (defined($defs{$hash->{d_name}})) { unless (defined($defs{$hash->{d_name}})) {
return "error: $hash->{d_name} does not exist."; my $msg = "error: $hash->{d_name} does not exist.";
if ($init_done == 1) {
return $msg;
} else { # during startup only log error because device maybe defined later
Log3 ($hash, 3, "PWMR_Attr desiredTempFrom $msg (maybe defined later)");
}
} }
PWMR_NormalizeRules($hash); PWMR_NormalizeRules($hash);