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:
parent
d0c3934dde
commit
6252e719a9
@ -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}}) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user