98_Heating_Control: bugfix in converter code, forum #106085

git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@20678 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
Beta-User 2019-12-08 04:49:25 +00:00
parent 08eae27643
commit 5adc27878c

View File

@ -136,7 +136,7 @@ sub Heating_Control_ConvertToWDT() {
my @b = GetAllReadings($hcName); my @b = GetAllReadings($hcName);
CommandDelete(undef,$hcName); CommandDelete(undef,$hcName);
CommandDefine(undef,"$hcName WeekdayTimer $definition"); 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"); CommandAttr(undef, "$hcName WDT_Group former_HC");
foreach my $linesa ( @a ){ foreach my $linesa ( @a ){
AnalyzeCommand(undef, "$linesa") unless ($linesa =~ m/^attr $hcName windowSensor/); AnalyzeCommand(undef, "$linesa") unless ($linesa =~ m/^attr $hcName windowSensor/);