2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-01-31 18:59:33 +00:00

34_ESPEasy.pm: Fix setExtensions usage again (#94913)

git-svn-id: https://svn.fhem.de/fhem/trunk@18088 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
dev0 2018-12-30 06:32:30 +00:00
parent 5650a62a3a
commit 1bad57190c

View File

@ -37,7 +37,7 @@ use HttpUtils;
use Color; use Color;
use SetExtensions; use SetExtensions;
my $module_version = "2.13"; # Version of this module my $module_version = "2.14"; # Version of this module
# ------------------------------------------------------------------------------ # ------------------------------------------------------------------------------
# modul version and required ESP Easy firmware / JSON lib version # modul version and required ESP Easy firmware / JSON lib version
@ -759,7 +759,7 @@ sub ESPEasy_Set($$@)
if (AttrVal($name,"useSetExtensions",0)) { if (AttrVal($name,"useSetExtensions",0)) {
Log3 $name, 3, "$type $name: set $name $cmd ".join(" ",@params)." (use set extensions)" Log3 $name, 3, "$type $name: set $name $cmd ".join(" ",@params)." (use set extensions)"
if $cmd =~ m/^(o(n|ff)-(for-timer|till(-overnight)?)|blink|intervals|toggle)$/ ; if $cmd =~ m/^(o(n|ff)-(for-timer|till(-overnight)?)|blink|intervals|toggle)$/ ;
return SetExtensions($hash, $clist, [$name, $cmd, @params]); return SetExtensions($hash, $clist, ($name, $cmd, @params));
} }
return "Unknown argument $cmd, choose one of $clist"; return "Unknown argument $cmd, choose one of $clist";
} }