diff --git a/fhem/CHANGED b/fhem/CHANGED index aabaa6209..991b3e4cb 100644 --- a/fhem/CHANGED +++ b/fhem/CHANGED @@ -1,5 +1,8 @@ # Add changes at the top of the list. Keep it in ASCII, and 80-char wide. # Do not insert empty lines here, update check depends on it + - bugfix: 73_NUKIBridge: in the `Set` and `Get` methods, updated the return + conditions to exclude the endpoint from the results + when it matches the output from the command handlers - bugfix: 72_FRITZBOX: warning: Odd number of elements in hash assignment - bugfix: 98_vitoconnect: Fix duplicate timer in case of password update - change: 74_NUKIDevice: Add UTF-8 encoding for reading bulk updates diff --git a/fhem/FHEM/73_NUKIBridge.pm b/fhem/FHEM/73_NUKIBridge.pm index 503734e8e..4773bae4c 100644 --- a/fhem/FHEM/73_NUKIBridge.pm +++ b/fhem/FHEM/73_NUKIBridge.pm @@ -267,7 +267,7 @@ sub Initialize { ], "release_status": "stable", "license": "GPL_2", - "version": "v2.1.0", + "version": "v2.1.1", "x_apiversion": "1.13.0", "author": [ "Marko Oldenburg " diff --git a/fhem/lib/FHEM/Devices/Nuki/Bridge.pm b/fhem/lib/FHEM/Devices/Nuki/Bridge.pm index 03ba361ff..c5e73664a 100644 --- a/fhem/lib/FHEM/Devices/Nuki/Bridge.pm +++ b/fhem/lib/FHEM/Devices/Nuki/Bridge.pm @@ -454,21 +454,24 @@ sub Set { return 'usage: callbackRemove' if ( split( m{\s+}xms, $arg ) > 1 ); my $id = defined $arg ? $arg : 0; - $endpoint = 'callback/remove'; $param = '{"param":"' . $id . '"}'; + $endpoint = 'callback/remove'; }, configauth => sub { return 'usage: configAuth' if ( split( m{\s+}xms, $arg ) > 1 ); my $configAuth = 'enable=' . ( $arg eq 'enable' ? 1 : 0 ); - $endpoint = 'configAuth'; $param = '{"param":"' . $configAuth . '"}'; + $endpoint = 'configAuth'; }, ); if ( exists $handlers{$cmd} ) { my $result = $handlers{$cmd}->(); - return $result if defined $result && length $result; + return $result + if defined $result + && length $result + && $result ne $endpoint; } else { my $list = 'info:noArg getDeviceList:noArg '; @@ -507,7 +510,10 @@ sub Get { if ( exists $handlers{$cmd} ) { my $result = $handlers{$cmd}->(); - return $result if defined $result && length $result; + return $result + if defined $result + && length $result + && $result ne $endpoint; } else { my $list = 'callbackList:noArg ';