@riddix/hamh 2.1.0-alpha.588 → 2.1.0-alpha.589
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
|
@@ -176057,7 +176057,7 @@ var RvcRunModeServerBase = class extends RvcRunModeServer {
|
|
|
176057
176057
|
await super.initialize();
|
|
176058
176058
|
const homeAssistant = await this.agent.load(HomeAssistantEntityBehavior);
|
|
176059
176059
|
this.update(homeAssistant.entity);
|
|
176060
|
-
this.reactTo(homeAssistant.onChange, this.update);
|
|
176060
|
+
this.reactTo(homeAssistant.onChange, this.update, { offline: true });
|
|
176061
176061
|
}
|
|
176062
176062
|
update(entity) {
|
|
176063
176063
|
if (!entity.state || !entity.state.attributes) {
|
|
@@ -178128,7 +178128,7 @@ var RvcOperationalStateServerBase = class extends RvcOperationalStateServer {
|
|
|
178128
178128
|
await super.initialize();
|
|
178129
178129
|
const homeAssistant = await this.agent.load(HomeAssistantEntityBehavior);
|
|
178130
178130
|
this.update(homeAssistant.entity);
|
|
178131
|
-
this.reactTo(homeAssistant.onChange, this.update);
|
|
178131
|
+
this.reactTo(homeAssistant.onChange, this.update, { offline: true });
|
|
178132
178132
|
}
|
|
178133
178133
|
update(entity) {
|
|
178134
178134
|
if (!entity.state || !entity.state.attributes) {
|