From f24fcbf5b5e40051ebbfe2e5d377f7b3b0b67881 Mon Sep 17 00:00:00 2001 From: Marko Oldenburg Date: Thu, 9 Jan 2020 16:03:22 +0100 Subject: [PATCH] remove battery reading code --- 74_NUKIDevice.pm | 2 -- 1 file changed, 2 deletions(-) diff --git a/74_NUKIDevice.pm b/74_NUKIDevice.pm index 3c7e549..181c446 100755 --- a/74_NUKIDevice.pm +++ b/74_NUKIDevice.pm @@ -194,7 +194,6 @@ sub NUKIDevice_Define($$) { Log3($name, 3, "NUKIDevice ($name) - defined with NukiId: $nukiId"); - Log3($name, 1, "NUKIDevice ($name) - reading battery a deprecated and will be remove in future"); CommandAttr(undef,$name . ' room NUKI') if ( AttrVal($name,'room','none') eq 'none'); @@ -446,7 +445,6 @@ sub NUKIDevice_WriteReadings($$) { readingsBulkUpdate( $hash, 'batteryCritical', $decode_json->{batteryCritical} ); readingsBulkUpdate( $hash, 'lockState', $decode_json->{stateName} ); readingsBulkUpdate( $hash, 'state', $decode_json->{stateName} ); - readingsBulkUpdate( $hash, 'battery', $battery ); readingsBulkUpdate( $hash, 'batteryState', $battery ); readingsBulkUpdate( $hash, 'success', $decode_json->{success} );