mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-03-04 05:16:45 +00:00
00_ZWDongle.pm: fix networkKey removal (Forum #37121)
git-svn-id: https://svn.fhem.de/fhem/trunk@8715 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
d85e45dde3
commit
d08e0a9e28
@ -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";
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user