From 8fff575abd501c1781fb296ea8b1978054a40605 Mon Sep 17 00:00:00 2001 From: ntruchsess Date: Mon, 6 Oct 2014 10:51:28 +0000 Subject: [PATCH] MQTT: fix 'Argument isn't numeric' git-svn-id: https://svn.fhem.de/fhem/trunk@6695 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/FHEM/10_MQTT_BRIDGE.pm | 2 +- fhem/FHEM/10_MQTT_DEVICE.pm | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/fhem/FHEM/10_MQTT_BRIDGE.pm b/fhem/FHEM/10_MQTT_BRIDGE.pm index 5eb4f15a2..35bac9068 100644 --- a/fhem/FHEM/10_MQTT_BRIDGE.pm +++ b/fhem/FHEM/10_MQTT_BRIDGE.pm @@ -141,7 +141,7 @@ sub Attr($$$$) { foreach my $topic (keys %{$hash->{subscribeSets}}) { if ($hash->{subscribeSets}->{topic} eq $2) { delete $hash->{subscribeSets}->{$topic}; - $hash->{subscribe} = [grep { $_ != $topic } @{$hash->{subscribe}}]; + $hash->{subscribe} = [grep { $_ ne $topic } @{$hash->{subscribe}}]; if ($main::init_done) { if (my $mqtt = $hash->{IODev}) {; my $msgid = send_unsubscribe($mqtt, diff --git a/fhem/FHEM/10_MQTT_DEVICE.pm b/fhem/FHEM/10_MQTT_DEVICE.pm index 3e746aa8e..f55a4b671 100644 --- a/fhem/FHEM/10_MQTT_DEVICE.pm +++ b/fhem/FHEM/10_MQTT_DEVICE.pm @@ -109,7 +109,7 @@ sub Attr($$$$) { } else { foreach my $topic (keys %{$hash->{subscribeReadings}}) { if ($hash->{subscribeReadings}->{$topic} eq $1) { - $hash->{subscribe} = [grep { $_ != $topic } @{$hash->{subscribe}}]; + $hash->{subscribe} = [grep { $_ ne $topic } @{$hash->{subscribe}}]; delete $hash->{subscribeReadings}->{$topic}; if ($main::init_done) { if (my $mqtt = $hash->{IODev}) {;