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:
rudolfkoenig
2015-06-08 08:53:36 +00:00
parent 4d382864bc
commit d0338b5cac

View File

@@ -797,7 +797,7 @@ ZWDongle_Attr($$$$)
} elsif($attr eq "homeId") { } elsif($attr eq "homeId") {
$hash->{homeId} = $value; $hash->{homeId} = $value;
} elsif($attr eq "networkKey") { } elsif($attr eq "networkKey" && $cmd eq "set") {
if(!$value || $value !~ m/^[0-9A-F]{32}$/i) { if(!$value || $value !~ m/^[0-9A-F]{32}$/i) {
return "attr $name networkKey: not a hex string with a length of 32"; return "attr $name networkKey: not a hex string with a length of 32";
} }