From 65073cc7d40112d9096f2a10a7ca5db3fb80373d Mon Sep 17 00:00:00 2001 From: Marko Oldenburg Date: Tue, 18 Jun 2019 17:14:27 +0200 Subject: [PATCH] change setreading value --- 98_SmarterCoffee.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/98_SmarterCoffee.pm b/98_SmarterCoffee.pm index 0c96d6a..03e00a9 100644 --- a/98_SmarterCoffee.pm +++ b/98_SmarterCoffee.pm @@ -599,7 +599,7 @@ sub WritePending { # Processing pending commands if ( ( $hash->{INVALID_DEVICE} // "0" ) eq "1" ) { - readingsSingleUpdate( $hash, 'state', 'invalid', 0 ); + readingsSingleUpdate( $hash, 'state', 'invalid', 1 ); } else { if ($pending) {