From ba07dc409160254c0f253142c4e2c40aac22d3ea Mon Sep 17 00:00:00 2001 From: LeonGaultier Date: Tue, 5 Dec 2017 04:05:00 +0000 Subject: [PATCH] 46_SmartPi: fix syntax error bug in Attribut Sub git-svn-id: https://svn.fhem.de/fhem/trunk@15556 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/CHANGED | 1 + fhem/FHEM/46_SmartPi.pm | 11 +++++------ 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/fhem/CHANGED b/fhem/CHANGED index 3b9106741..148785688 100644 --- a/fhem/CHANGED +++ b/fhem/CHANGED @@ -1,5 +1,6 @@ # Add changes at the top of the list. Keep it in ASCII, and 80-char wide. # Do not insert empty lines here, update check depends on it. + - bugfix: 46_SmartPi: fix syntax error bug in Attribut Sub - change: 98_dewpoint: Refactoring using API calls, verbose attribute added - change: FileLog removes newlines from the data (Forum #79684) - bugfix: 98_Siro.pm: Support favorit for model ERB15LE diff --git a/fhem/FHEM/46_SmartPi.pm b/fhem/FHEM/46_SmartPi.pm index 75acb4f56..e01631133 100644 --- a/fhem/FHEM/46_SmartPi.pm +++ b/fhem/FHEM/46_SmartPi.pm @@ -164,13 +164,13 @@ sub SmartPi_Attr(@) { readingsSingleUpdate ( $hash, "state", "disabled", 1 ); Log3 $name, 3, "SmartPi ($name) - disabled"; } - + } else { readingsSingleUpdate ( $hash, "state", "enabled", 1 ); Log3 $name, 3, "SmartPi ($name) - enabled"; } - - elsif( $attrName eq "disabledForIntervals" ) { + + } elsif( $attrName eq "disabledForIntervals" ) { if( $cmd eq "set" ) { return "check disabledForIntervals Syntax HH:MM-HH:MM or 'HH:MM-HH:MM HH:MM-HH:MM ...'" unless($attrVal =~ /^((\d{2}:\d{2})-(\d{2}:\d{2})\s?)+$/); @@ -182,8 +182,7 @@ sub SmartPi_Attr(@) { Log3 $name, 3, "SmartPi ($name) - enabled"; readingsSingleUpdate ( $hash, "state", "active", 1 ); } - } - + } elsif( $attrName eq "interval" ) { if( $cmd eq "set" ) { $hash->{INTERVAL} = $attrVal; @@ -192,7 +191,7 @@ sub SmartPi_Attr(@) { $hash->{INTERVAL} = 300; } } - + return undef; }