From c9b2a7f6d4ff8076cb49ba0c393618decc89f9bd Mon Sep 17 00:00:00 2001 From: Koen Kanters Date: Thu, 11 Aug 2022 20:23:40 +0200 Subject: [PATCH] Revert "Publish device and bridge availability when Home Assistant comes online. https://github.com/Koenkk/zigbee2mqtt/issues/13382" This reverts commit 619d5232db829aa0dc6a5fd7d8e55cd8b15789fd. --- lib/extension/homeassistant.ts | 2 -- 1 file changed, 2 deletions(-) diff --git a/lib/extension/homeassistant.ts b/lib/extension/homeassistant.ts index 3fa8f4f0..bb38d2ff 100644 --- a/lib/extension/homeassistant.ts +++ b/lib/extension/homeassistant.ts @@ -1333,8 +1333,6 @@ export default class HomeAssistant extends Extension { data.message.toLowerCase() === 'online') { const timer = setTimeout(async () => { // Publish all device states. - this.mqtt.publishStateOnline(); - this.eventBus.emitPublishAvailability(); for (const entity of [...this.zigbee.devices(false), ...this.zigbee.groups()]) { if (this.state.exists(entity)) { this.publishEntityState(entity, this.state.get(entity), 'publishCached');