00_ZWDongle.pm: fix networkKey removal (Forum #37121)
git-svn-id: svn://svn.code.sf.net/p/fhem/code/trunk@8715 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
@@ -797,7 +797,7 @@ ZWDongle_Attr($$$$)
|
||||
} elsif($attr eq "homeId") {
|
||||
$hash->{homeId} = $value;
|
||||
|
||||
} elsif($attr eq "networkKey") {
|
||||
} elsif($attr eq "networkKey" && $cmd eq "set") {
|
||||
if(!$value || $value !~ m/^[0-9A-F]{32}$/i) {
|
||||
return "attr $name networkKey: not a hex string with a length of 32";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user