mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-03-03 16:56:54 +00:00
34_ESPEasy.pm: Added lost attribute check for boolean attributes
git-svn-id: https://svn.fhem.de/fhem/trunk@17759 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
3a1f5b1b3a
commit
5ebe81033f
@ -1344,6 +1344,10 @@ sub ESPEasy_Attr(@)
|
||||
$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") {
|
||||
$ret = "0 | 1 | ESPname | ip[/netmask][,ip[/netmask]][,...]"
|
||||
if $cmd eq "set" && !(ESPEasy_isAttrCombineDevices($aVal) || $aVal =~ m/^[01]$/ )
|
||||
|
Loading…
x
Reference in New Issue
Block a user