mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-05-01 20:20:10 +00:00
FHEMWEB on/off logic should support the :noArg specifier in the help
git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@4222 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
6eb7fd584a
commit
860fa97a16
@ -138,9 +138,9 @@ FHEMWEB_Initialize($)
|
||||
refresh
|
||||
reverseLogs:0,1
|
||||
roomIcons
|
||||
smallscreen:deprecated
|
||||
smallscreen:unused
|
||||
stylesheetPrefix
|
||||
touchpad:deprecated
|
||||
touchpad:unused
|
||||
webname
|
||||
);
|
||||
use warnings 'qw';
|
||||
@ -2030,8 +2030,8 @@ FW_devState($$@)
|
||||
my $state = $defs{$d}{STATE};
|
||||
$state = "" if(!defined($state));
|
||||
|
||||
$hasOnOff = ($allSets =~ m/(^| )on( |$)/ &&
|
||||
$allSets =~ m/(^| )off( |$)/);
|
||||
$hasOnOff = ($allSets =~ m/(^| )on(:[^ ]*)?( |$)/ &&
|
||||
$allSets =~ m/(^| )off(:[^ ]*)?( |$)/);
|
||||
my $txt = $state;
|
||||
if(defined(AttrVal($d, "showtime", undef))) {
|
||||
my $v = $defs{$d}{READINGS}{state}{TIME};
|
||||
|
Loading…
x
Reference in New Issue
Block a user