change setreading value

This commit is contained in:
Marko Oldenburg 2019-06-18 17:14:27 +02:00
parent 0863ff4c8d
commit 65073cc7d4

View File

@ -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) {