Skip to content

Commit

Permalink
Set gateway to online by default
Browse files Browse the repository at this point in the history
  • Loading branch information
yusijs committed Aug 17, 2023
1 parent c32386e commit bdecb39
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ async function updateAndCreateEntities(homeData: Home) {
discoveredDevices.forEach((dev) =>
publish(dev.availability_topic, dev.online ? 'online' : 'offline')
);
publish(gatewayFeature.availability_topic, 'online');
await getAndCreateEntities(discoveredDevices, gatewayFeature);
await createEntitiesMqtt();
await publishEntityChanges(discoveredDevices, devices);
Expand Down

0 comments on commit bdecb39

Please sign in to comment.