2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-01-31 12:49:34 +00:00

98_readingsWatcher: fix edit by defmod

git-svn-id: https://svn.fhem.de/fhem/trunk@21756 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
Wzut 2020-04-23 05:37:01 +00:00
parent 7978575888
commit f1536d5ada

View File

@ -122,7 +122,7 @@ sub Define {
my $def = shift;
my ($name, $type, $noglobal) = split(m{ \s+ }xms, $def, 3);
if (exists($modules{readingsWatcher}{defptr})) {
if (exists($modules{readingsWatcher}{defptr}) && ($modules{readingsWatcher}{defptr}->{NAME} ne $name)) {
my $error = 'one readingsWatcher device is already defined !';
Log3 $hash, 1, $error;
return $error;