2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-03-10 09:16:53 +00:00

98_Heating_Control: bugfix in converter code, forum #106085

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

View File

@ -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/);