@riddix/hamh 2.1.0-alpha.823 → 2.1.0-alpha.825
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.
package/dist/backend/cli.js
CHANGED
|
@@ -137902,7 +137902,6 @@ var HomeAssistantConfig = class extends Service {
|
|
|
137902
137902
|
init_esm();
|
|
137903
137903
|
init_service();
|
|
137904
137904
|
import { createHash } from "node:crypto";
|
|
137905
|
-
import { getStates } from "home-assistant-js-websocket";
|
|
137906
137905
|
import { fromPairs, keyBy, keys, uniq, values } from "lodash-es";
|
|
137907
137906
|
|
|
137908
137907
|
// src/utils/log-memory.ts
|
|
@@ -137941,6 +137940,7 @@ function logStartupMemoryGuard(log) {
|
|
|
137941
137940
|
|
|
137942
137941
|
// src/services/home-assistant/home-assistant-registry.ts
|
|
137943
137942
|
init_retry();
|
|
137943
|
+
init_send_ha_message();
|
|
137944
137944
|
|
|
137945
137945
|
// src/services/home-assistant/api/get-registry.ts
|
|
137946
137946
|
init_send_ha_message();
|
|
@@ -138096,7 +138096,11 @@ var HomeAssistantRegistry = class extends Service {
|
|
|
138096
138096
|
const timeoutMs = this.options.messageTimeoutMs;
|
|
138097
138097
|
const [entityRegistry, statesList, deviceRegistry, labels, areas] = await Promise.all([
|
|
138098
138098
|
getRegistry(connection, timeoutMs),
|
|
138099
|
-
|
|
138099
|
+
sendHaMessage(
|
|
138100
|
+
connection,
|
|
138101
|
+
{ type: "get_states" },
|
|
138102
|
+
timeoutMs
|
|
138103
|
+
),
|
|
138100
138104
|
getDeviceRegistry(connection, timeoutMs),
|
|
138101
138105
|
getLabelRegistry(connection, timeoutMs).catch(
|
|
138102
138106
|
() => []
|