mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-03-02 16:16:36 +00:00
49_SSCamSTRM: fix: adoptTime accept not only integer values
git-svn-id: https://svn.fhem.de/fhem/trunk@22490 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
76ae85794b
commit
8cbd1fd21a
@ -91,6 +91,7 @@ BEGIN {
|
|||||||
|
|
||||||
# Versions History intern
|
# Versions History intern
|
||||||
my %vNotesIntern = (
|
my %vNotesIntern = (
|
||||||
|
"2.14.2" => "29.07.2020 fix: adoptTime accept not only integer values ",
|
||||||
"2.14.1" => "28.07.2020 switching time increases with each adoptForTimer command ",
|
"2.14.1" => "28.07.2020 switching time increases with each adoptForTimer command ",
|
||||||
"2.14.0" => "27.07.2020 new commands adoptForTimer and control command adoptTime ",
|
"2.14.0" => "27.07.2020 new commands adoptForTimer and control command adoptTime ",
|
||||||
"2.13.1" => "21.07.2020 fix: set of values in attr adoptSubset is empty after restart, changes according level 3 PBP ",
|
"2.13.1" => "21.07.2020 fix: set of values in attr adoptSubset is empty after restart, changes according level 3 PBP ",
|
||||||
@ -499,7 +500,7 @@ sub _setAdoptTimer { ## no critic "not used"
|
|||||||
my $prop = $paref->{prop} // 0;
|
my $prop = $paref->{prop} // 0;
|
||||||
|
|
||||||
my $ret = "";
|
my $ret = "";
|
||||||
$ret = qq{The command "$opt" needs an integer as argument.} if($prop !~ /[0-9]+/x);
|
$ret = qq{The command "$opt" needs an integer as argument.} if($prop !~ /^[0-9]+?$/x);
|
||||||
return $ret if($ret);
|
return $ret if($ret);
|
||||||
|
|
||||||
delReadings ($hash, "adoptTimer");
|
delReadings ($hash, "adoptTimer");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user