Skip to content

Commit

Permalink
Merge pull request #907 from DaveNeudoerffer/mqtt_fix
Browse files Browse the repository at this point in the history
Mqtt fix
  • Loading branch information
hplato authored Sep 8, 2024
2 parents a464b90 + cbae7aa commit 834044c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/mqtt_items.pm
Original file line number Diff line number Diff line change
Expand Up @@ -1087,6 +1087,10 @@ sub new { ### mqtt_LocalItem
$self->{disc_info}->{unique_id} =~ s/ /_/g;
}

if( ref $self->{local_item}->{mqtt_device_info} ) {
$self->{disc_info}->{device} = $self->{local_item}->{mqtt_device_info};
}

$self->create_discovery_message();


Expand Down

0 comments on commit 834044c

Please sign in to comment.