diff --git a/FHEM/98_Heating_Control.pm b/FHEM/98_Heating_Control.pm index 8b68a4978..3d0876d55 100644 --- a/FHEM/98_Heating_Control.pm +++ b/FHEM/98_Heating_Control.pm @@ -136,7 +136,7 @@ sub Heating_Control_ConvertToWDT() { my @b = GetAllReadings($hcName); CommandDelete(undef,$hcName); CommandDefine(undef,"$hcName WeekdayTimer $definition"); - CommandAttr(undef, "$hcName WDT_delayedExecutionDevices $windows"); + CommandAttr(undef, "$hcName WDT_delayedExecutionDevices $windows") if defined $windows; CommandAttr(undef, "$hcName WDT_Group former_HC"); foreach my $linesa ( @a ){ AnalyzeCommand(undef, "$linesa") unless ($linesa =~ m/^attr $hcName windowSensor/);