2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-01-31 18:59:33 +00:00

MQTT_DEVICE/BRIDGE: move call to AssignIoPort to DefFn

git-svn-id: https://svn.fhem.de/fhem/trunk@6842 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
ntruchsess 2014-10-31 19:02:20 +00:00
parent 34bdf6b9b1
commit 684211d5b1

View File

@ -436,7 +436,8 @@ sub Client_Define($$) {
$client->{retain} = 0;
$client->{subscribe} = [];
$client->{subscribeExpr} = [];
AssignIoPort($client);
if ($main::init_done) {
return client_start($client);
} else {
@ -485,7 +486,6 @@ sub client_attr($$$$$) {
sub client_start($) {
my $client = shift;
AssignIoPort($client);
my $name = $client->{NAME};
if (! (defined AttrVal($name,"stateFormat",undef))) {
$main::attr{$name}{stateFormat} = "transmission-state";