From 1e84b62ae13c6e9451271cb783708c67c5a106cf Mon Sep 17 00:00:00 2001 From: klaus-schauer <> Date: Fri, 27 Dec 2013 18:05:12 +0000 Subject: [PATCH] eliminates errors in the test routine of the attribute pollingIntervall git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@4484 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- FHEM/55_PIFACE.pm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/FHEM/55_PIFACE.pm b/FHEM/55_PIFACE.pm index aae8f1c10..567f84cd4 100644 --- a/FHEM/55_PIFACE.pm +++ b/FHEM/55_PIFACE.pm @@ -144,12 +144,12 @@ sub PIFACE_Attr(@) { if ($attrName eq "pollInterval") { if (!defined $attrVal) { RemoveInternalTimer($hash); - } elsif ($attrVal !~ m/^(off|[1..10])$/) { + } elsif ($attrVal eq "off" || $attrVal ~~ [1..10]) { + PIFACE_GetUpdate($hash); + } else { RemoveInternalTimer($hash); Log3($name, 3, "PIFACE $name attribute-value [$attrName] = $attrVal wrong"); CommandDeleteAttr(undef, "$name pollInterval"); - } else { - PIFACE_GetUpdate($hash); } } elsif ($attrName eq "defaultState") { if (!defined $attrVal){