mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-05-07 22:29:19 +00:00
fhem.pl: add "attr xxx disabled toggle" (Forum #33124)
git-svn-id: https://svn.fhem.de/fhem/trunk@7815 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
377321f8d7
commit
c479ea3cd5
@ -2277,6 +2277,10 @@ CommandAttr($$)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if($attrName eq 'disable' and $a[2] eq 'toggle') {
|
||||||
|
$a[2] = IsDisabled($sdev) ? 0 : 1;
|
||||||
|
}
|
||||||
|
|
||||||
if($attrName eq "userReadings") {
|
if($attrName eq "userReadings") {
|
||||||
|
|
||||||
my %userReadings;
|
my %userReadings;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user