From da1caadf89def9a182952bb4a740094d23db1814 Mon Sep 17 00:00:00 2001 From: hexenmeister <hexenmeister@users.noreply.github.com> Date: Thu, 17 Dec 2020 20:48:11 +0000 Subject: [PATCH] fix: tipo git-svn-id: https://svn.fhem.de/fhem/trunk@23374 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/FHEM/98_systemd_watchdog.pm | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/fhem/FHEM/98_systemd_watchdog.pm b/fhem/FHEM/98_systemd_watchdog.pm index 4a5974a09..4d305e81d 100644 --- a/fhem/FHEM/98_systemd_watchdog.pm +++ b/fhem/FHEM/98_systemd_watchdog.pm @@ -48,6 +48,7 @@ sub systemd_watchdog_Initialize($) { $hash->{UndefFn} = "watchdog_client_Undefine"; $hash->{ShutdownFn} = "watchdog_client_Shutdown"; $hash->{NotifyFn} = "watchdog_client_Notify"; + $hash->{AttrList} = $readingFnAttributes; #Log3($hash->{NAME},5,"Watchdog Client: Debug: watchdog_client_Initialize"); RemoveInternalTimer($hash); @@ -86,7 +87,7 @@ sub watchdog_client_Define($$) { } else { $hash->{'systemd-watchdog'}="not available"; $hash->{'.systemd'}=undef; - Log3($hash->{NAME},1,"Watchdog Client: systemd watchdog is not available. Module inactiv."); + Log3($hash->{NAME},1,"Watchdog Client: systemd watchdog is not available. Module inactive."); } # Initialize watchdog_client_Start($hash); @@ -160,7 +161,7 @@ sub watchdog_client_Start($) { unless (watchdog_client_IsWDAvailable($hash)) { Log3($hash->{NAME},2,"Watchdog Client: no systemd watchdog available"); - readingsSingleUpdate($hash,"state","inactiv",1); + readingsSingleUpdate($hash,"state","inactive",1); readingsSingleUpdate($hash,"next","none",1); return; }