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:
parent
7978575888
commit
f1536d5ada
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user