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:
parent
90f40285ec
commit
101a044b5c
@ -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,
|
||||
|
@ -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}) {;
|
||||
|
Loading…
x
Reference in New Issue
Block a user