2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-03-10 09:16:53 +00:00

MQTT: fix 'Argument isn't numeric'

git-svn-id: https://svn.fhem.de/fhem/trunk@6695 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
ntruchsess 2014-10-06 10:51:28 +00:00
parent 90f40285ec
commit 101a044b5c
2 changed files with 2 additions and 2 deletions

View File

@ -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,

View File

@ -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}) {;