fix state reading after getDistribution

This commit is contained in:
Marko Oldenburg 2018-12-20 10:46:13 +01:00
parent 9d9af0eac8
commit bc8f2ac22f

View File

@ -35,7 +35,7 @@ package main;
use strict;
use warnings;
my $version = "1.4.1";
my $version = "1.4.2";
sub AptToDate_Initialize($) {
@ -872,7 +872,8 @@ sub WriteReadings($$) {
readingsBulkUpdate(
$hash, 'state',
(
scalar keys %{ $decode_json->{packages} } > 0
(scalar keys %{ $decode_json->{packages} } > 0
or scalar keys%{ $hash->{".fhem"}{aptget}{packages} } > 0)
? 'system updates available'
: 'system is up to date'
)