10_MQTT2_DEVICE.pm: add SetExtensionsCancel (Forum #95581)

git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@19149 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig 2019-04-08 21:12:48 +00:00
parent 8b08b7c0bf
commit 0a413f55e8

View File

@ -346,8 +346,10 @@ MQTT2_DEVICE_Set($@)
return SetExtensions($hash, $cmdList, @a) if(!$cmd);
return undef if(IsDisabled($hash->{NAME}));
my $a1 = (@a > 1 ? $a[1] : '');
$cmd = MQTT2_buildCmd($hash, \@a, $cmd);
return if(!$cmd);
SetExtensionsCancel($hash) if($a1 eq "on" || $a1 eq "off");
IOWrite($hash, "publish", $cmd);
my $ssl = AttrVal($hash->{NAME}, "setStateList", "");
if(!$ssl) {