From e07c4bb561182d10702eb053d022a21967099fc9 Mon Sep 17 00:00:00 2001 From: Marko Oldenburg Date: Wed, 9 Nov 2016 14:49:57 +0100 Subject: [PATCH] =?UTF-8?q?=C3=84nderungen=20des=20criticalBattery=20State?= =?UTF-8?q?s?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 74_NUKIDevice.pm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/74_NUKIDevice.pm b/74_NUKIDevice.pm index ae6af2e..4a49364 100644 --- a/74_NUKIDevice.pm +++ b/74_NUKIDevice.pm @@ -337,8 +337,10 @@ sub NUKIDevice_Parse($$$) { my $battery; if( $decode_json->{batteryCritical} eq "false" ) { $battery = "ok"; - } else { + } elsif ( $decode_json->{batteryCritical} eq "true" ) { $battery = "low"; + } else { + $battery = "parseError"; } if( defined($hash->{helper}{lockAction}) ) {