mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-02-01 01:09:47 +00:00
SetExtensions.pm: better on/off check (Forum #41207)
git-svn-id: https://svn.fhem.de/fhem/trunk@9274 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
1e84d58a2b
commit
ed4cb93e2e
@ -25,8 +25,8 @@ SetExtensions($$@)
|
||||
"toggle" => 0
|
||||
);
|
||||
|
||||
my $hasOn = ($list =~ m/\bon\b/);
|
||||
my $hasOff = ($list =~ m/\boff\b/);
|
||||
my $hasOn = ($list =~ m/(^| )on\b/);
|
||||
my $hasOff = ($list =~ m/(^| )off\b/);
|
||||
my $value = Value($name);
|
||||
my $em = AttrVal($name, "eventMap", undef);
|
||||
if($em) {
|
||||
|
Loading…
Reference in New Issue
Block a user