2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-03-04 17:36:39 +00:00

10_MQTT2_DEVICE.pm: modify: no devicetopic change, if attr is set (Forum #125159)

git-svn-id: https://svn.fhem.de/fhem/trunk@25423 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig 2022-01-05 17:00:49 +00:00
parent d0c3934dde
commit 6252e719a9

View File

@ -73,7 +73,7 @@ MQTT2_DEVICE_Define($$)
return "wrong syntax for $name: define <name> MQTT2_DEVICE [clientid]"
if(int(@a));
$hash->{DEVICETOPIC} = $name;
$hash->{DEVICETOPIC} = $name if(!AttrVal($name, "devicetopic", 0));
if($hash->{CID}) {
my $dpc = $modules{MQTT2_DEVICE}{defptr}{cid};
if(!$dpc->{$hash->{CID}}) {