@riddix/hamh 2.1.0-alpha.499 → 2.1.0-alpha.500

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -151987,6 +151987,7 @@ var BridgeService = class extends Service {
151987
151987
  for (const bridge of this.bridges) {
151988
151988
  try {
151989
151989
  await bridge.refreshDevices();
151990
+ this.onBridgeChanged?.(bridge.id);
151990
151991
  } catch (e) {
151991
151992
  this.log.error(`Failed to refresh bridge ${bridge.id}:`, e);
151992
151993
  }
@@ -152277,7 +152278,7 @@ var HomeAssistantRegistry = class extends Service {
152277
152278
  try {
152278
152279
  const changed = await this.reload();
152279
152280
  if (changed) {
152280
- onRefresh();
152281
+ await onRefresh();
152281
152282
  }
152282
152283
  } catch (e) {
152283
152284
  logger145.warn("Failed to refresh registry, will retry next interval:", e);