mirror of
https://github.com/Koenkk/zigbee2mqtt.git
synced 2026-07-27 22:11:13 +00:00
Revert "Publish device and bridge availability when Home Assistant comes online. https://github.com/Koenkk/zigbee2mqtt/issues/13382"
This reverts commit 619d5232db.
This commit is contained in:
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user