mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-05-04 22:19:38 +00:00
34_ESPEasy.pm: Added lost attribute check for boolean attributes
git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@17759 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
abf872cc7c
commit
57879b3582
@ -1344,6 +1344,10 @@ sub ESPEasy_Attr(@)
|
|||||||
$ret = "0,1,2" if ($cmd eq "set" && not $aVal =~ m/^(0|1|2)$/)
|
$ret = "0,1,2" if ($cmd eq "set" && not $aVal =~ m/^(0|1|2)$/)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
elsif ($aName =~ m/^(autosave|autocreate|authentication|disable|deepSleep)$/
|
||||||
|
|| $aName =~ m/^(presenceCheck|displayTextEncode|resendFailedCmd)$/) {
|
||||||
|
$ret = "0,1" if ($cmd eq "set" && not $aVal =~ m/^(0|1)$/)}
|
||||||
|
|
||||||
elsif ($aName eq "combineDevices") {
|
elsif ($aName eq "combineDevices") {
|
||||||
$ret = "0 | 1 | ESPname | ip[/netmask][,ip[/netmask]][,...]"
|
$ret = "0 | 1 | ESPname | ip[/netmask][,ip[/netmask]][,...]"
|
||||||
if $cmd eq "set" && !(ESPEasy_isAttrCombineDevices($aVal) || $aVal =~ m/^[01]$/ )
|
if $cmd eq "set" && !(ESPEasy_isAttrCombineDevices($aVal) || $aVal =~ m/^[01]$/ )
|
||||||
|
Loading…
x
Reference in New Issue
Block a user