2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-03-03 16:56:54 +00:00

FHEM/91_watchdog.pm: enable the "inactive" state for the trigger (Forum #72189)

git-svn-id: https://svn.fhem.de/fhem/trunk@14337 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig 2017-05-21 09:50:29 +00:00
parent a707ef7046
commit bbc6f49c19

View File

@ -149,7 +149,7 @@ watchdog_Trigger($)
my ($watchdog) = @_;
my $name = $watchdog->{NAME};
if(AttrVal($name, "disable", 0)) {
if(IsDisabled($name) || $watchdog->{STATE} eq "inactive") {
$watchdog->{STATE} = "defined";
return "";
}