@riddix/hamh 2.1.0-alpha.645 → 2.1.0-alpha.647
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
|
@@ -168401,7 +168401,7 @@ var BasicInformationServer2 = class extends BridgedDeviceBasicInformationServer
|
|
|
168401
168401
|
await super.initialize();
|
|
168402
168402
|
const homeAssistant = await this.agent.load(HomeAssistantEntityBehavior);
|
|
168403
168403
|
this.update(homeAssistant.entity);
|
|
168404
|
-
this.reactTo(homeAssistant.onChange, this.update);
|
|
168404
|
+
this.reactTo(homeAssistant.onChange, this.update, { offline: true });
|
|
168405
168405
|
}
|
|
168406
168406
|
update(entity) {
|
|
168407
168407
|
if (!entity.state || !entity.state.attributes) {
|
|
@@ -168467,7 +168467,7 @@ var ElectricalEnergyMeasurementServerBase = class extends FeaturedBase {
|
|
|
168467
168467
|
);
|
|
168468
168468
|
}
|
|
168469
168469
|
this.update();
|
|
168470
|
-
this.reactTo(homeAssistant.onChange, this.update);
|
|
168470
|
+
this.reactTo(homeAssistant.onChange, this.update, { offline: true });
|
|
168471
168471
|
}
|
|
168472
168472
|
update() {
|
|
168473
168473
|
const homeAssistant = this.agent.get(HomeAssistantEntityBehavior);
|
|
@@ -168527,7 +168527,7 @@ var ElectricalPowerMeasurementServerBase = class extends ElectricalPowerMeasurem
|
|
|
168527
168527
|
);
|
|
168528
168528
|
}
|
|
168529
168529
|
this.update();
|
|
168530
|
-
this.reactTo(homeAssistant.onChange, this.update);
|
|
168530
|
+
this.reactTo(homeAssistant.onChange, this.update, { offline: true });
|
|
168531
168531
|
}
|
|
168532
168532
|
update() {
|
|
168533
168533
|
const homeAssistant = this.agent.get(HomeAssistantEntityBehavior);
|
|
@@ -168580,7 +168580,7 @@ var HumidityMeasurementServerBase = class extends RelativeHumidityMeasurementSer
|
|
|
168580
168580
|
await super.initialize();
|
|
168581
168581
|
const homeAssistant = await this.agent.load(HomeAssistantEntityBehavior);
|
|
168582
168582
|
this.update(homeAssistant.entity);
|
|
168583
|
-
this.reactTo(homeAssistant.onChange, this.update);
|
|
168583
|
+
this.reactTo(homeAssistant.onChange, this.update, { offline: true });
|
|
168584
168584
|
}
|
|
168585
168585
|
update(entity) {
|
|
168586
168586
|
if (!entity.state || !entity.state.attributes) {
|
|
@@ -168644,7 +168644,7 @@ var PowerSourceServerBase = class extends FeaturedBase2 {
|
|
|
168644
168644
|
);
|
|
168645
168645
|
}
|
|
168646
168646
|
this.update(homeAssistant.entity);
|
|
168647
|
-
this.reactTo(homeAssistant.onChange, this.update);
|
|
168647
|
+
this.reactTo(homeAssistant.onChange, this.update, { offline: true });
|
|
168648
168648
|
}
|
|
168649
168649
|
update(entity) {
|
|
168650
168650
|
if (!entity.state || !entity.state.attributes) {
|
|
@@ -168730,7 +168730,7 @@ var TemperatureMeasurementServerBase = class extends TemperatureMeasurementServe
|
|
|
168730
168730
|
await super.initialize();
|
|
168731
168731
|
const homeAssistant = await this.agent.load(HomeAssistantEntityBehavior);
|
|
168732
168732
|
this.update(homeAssistant.entity);
|
|
168733
|
-
this.reactTo(homeAssistant.onChange, this.update);
|
|
168733
|
+
this.reactTo(homeAssistant.onChange, this.update, { offline: true });
|
|
168734
168734
|
}
|
|
168735
168735
|
update(entity) {
|
|
168736
168736
|
if (!entity.state || !entity.state.attributes) {
|
|
@@ -168772,7 +168772,7 @@ var HepaFilterMonitoringServerBase = class extends FeaturedBase3 {
|
|
|
168772
168772
|
await super.initialize();
|
|
168773
168773
|
const homeAssistant = await this.agent.load(HomeAssistantEntityBehavior);
|
|
168774
168774
|
this.update(homeAssistant.entity);
|
|
168775
|
-
this.reactTo(homeAssistant.onChange, this.update);
|
|
168775
|
+
this.reactTo(homeAssistant.onChange, this.update, { offline: true });
|
|
168776
168776
|
}
|
|
168777
168777
|
update(entity) {
|
|
168778
168778
|
if (!entity.state || !entity.state.attributes) {
|
|
@@ -170026,7 +170026,7 @@ var PressureMeasurementServerBase = class extends PressureMeasurementServer {
|
|
|
170026
170026
|
await super.initialize();
|
|
170027
170027
|
const homeAssistant = await this.agent.load(HomeAssistantEntityBehavior);
|
|
170028
170028
|
this.update(homeAssistant.entity);
|
|
170029
|
-
this.reactTo(homeAssistant.onChange, this.update);
|
|
170029
|
+
this.reactTo(homeAssistant.onChange, this.update, { offline: true });
|
|
170030
170030
|
}
|
|
170031
170031
|
update(entity) {
|
|
170032
170032
|
if (!entity.state || !entity.state.attributes) {
|
|
@@ -170586,7 +170586,7 @@ var BooleanStateServerBase = class extends BooleanStateServer {
|
|
|
170586
170586
|
await super.initialize();
|
|
170587
170587
|
const homeAssistant = await this.agent.load(HomeAssistantEntityBehavior);
|
|
170588
170588
|
this.update(homeAssistant.entity);
|
|
170589
|
-
this.reactTo(homeAssistant.onChange, this.update);
|
|
170589
|
+
this.reactTo(homeAssistant.onChange, this.update, { offline: true });
|
|
170590
170590
|
}
|
|
170591
170591
|
update(entity) {
|
|
170592
170592
|
if (!entity.state || !entity.state.attributes) {
|
|
@@ -170664,7 +170664,7 @@ var PirOccupancySensingServer = class extends PirOccupancySensingServerBase {
|
|
|
170664
170664
|
await super.initialize();
|
|
170665
170665
|
const homeAssistant = await this.agent.load(HomeAssistantEntityBehavior);
|
|
170666
170666
|
this.update(homeAssistant.entity);
|
|
170667
|
-
this.reactTo(homeAssistant.onChange, this.update);
|
|
170667
|
+
this.reactTo(homeAssistant.onChange, this.update, { offline: true });
|
|
170668
170668
|
}
|
|
170669
170669
|
update(entity) {
|
|
170670
170670
|
if (!entity.state || !entity.state.attributes) {
|
|
@@ -170732,7 +170732,7 @@ var OccupancySensingServer2 = class extends OccupancySensingServerBase {
|
|
|
170732
170732
|
await super.initialize();
|
|
170733
170733
|
const homeAssistant = await this.agent.load(HomeAssistantEntityBehavior);
|
|
170734
170734
|
this.update(homeAssistant.entity);
|
|
170735
|
-
this.reactTo(homeAssistant.onChange, this.update);
|
|
170735
|
+
this.reactTo(homeAssistant.onChange, this.update, { offline: true });
|
|
170736
170736
|
}
|
|
170737
170737
|
update(entity) {
|
|
170738
170738
|
if (!entity.state || !entity.state.attributes) {
|
|
@@ -170847,7 +170847,7 @@ var SmokeAlarmServerImpl = class extends SmokeAlarmServerWithFeature {
|
|
|
170847
170847
|
await super.initialize();
|
|
170848
170848
|
const homeAssistant = await this.agent.load(HomeAssistantEntityBehavior);
|
|
170849
170849
|
this.update(homeAssistant.entity);
|
|
170850
|
-
this.reactTo(homeAssistant.onChange, this.update);
|
|
170850
|
+
this.reactTo(homeAssistant.onChange, this.update, { offline: true });
|
|
170851
170851
|
}
|
|
170852
170852
|
update(entity) {
|
|
170853
170853
|
const isOn = this.agent.get(HomeAssistantEntityBehavior).isAvailable && entity.state.state === "on";
|
|
@@ -170861,7 +170861,7 @@ var CoAlarmServerImpl = class extends CoAlarmServerWithFeature {
|
|
|
170861
170861
|
await super.initialize();
|
|
170862
170862
|
const homeAssistant = await this.agent.load(HomeAssistantEntityBehavior);
|
|
170863
170863
|
this.update(homeAssistant.entity);
|
|
170864
|
-
this.reactTo(homeAssistant.onChange, this.update);
|
|
170864
|
+
this.reactTo(homeAssistant.onChange, this.update, { offline: true });
|
|
170865
170865
|
}
|
|
170866
170866
|
update(entity) {
|
|
170867
170867
|
const isOn = this.agent.get(HomeAssistantEntityBehavior).isAvailable && entity.state.state === "on";
|
|
@@ -175085,7 +175085,7 @@ var AirQualitySensorServerImpl = class extends AirQualityServerWithFeatures {
|
|
|
175085
175085
|
await super.initialize();
|
|
175086
175086
|
const homeAssistant = await this.agent.load(HomeAssistantEntityBehavior);
|
|
175087
175087
|
this.update(homeAssistant.entity);
|
|
175088
|
-
this.reactTo(homeAssistant.onChange, this.update);
|
|
175088
|
+
this.reactTo(homeAssistant.onChange, this.update, { offline: true });
|
|
175089
175089
|
}
|
|
175090
175090
|
update(entity) {
|
|
175091
175091
|
if (!entity.state || !entity.state.attributes) {
|
|
@@ -175196,7 +175196,7 @@ var CarbonMonoxideConcentrationMeasurementServer2 = class extends CarbonMonoxide
|
|
|
175196
175196
|
await super.initialize();
|
|
175197
175197
|
const homeAssistant = await this.agent.load(HomeAssistantEntityBehavior);
|
|
175198
175198
|
this.update(homeAssistant.entity);
|
|
175199
|
-
this.reactTo(homeAssistant.onChange, this.update);
|
|
175199
|
+
this.reactTo(homeAssistant.onChange, this.update, { offline: true });
|
|
175200
175200
|
}
|
|
175201
175201
|
update(entity) {
|
|
175202
175202
|
if (!entity.state || !entity.state.attributes) {
|
|
@@ -175227,7 +175227,7 @@ var CoAirQualityServer = class extends CoAirQualityServerBase {
|
|
|
175227
175227
|
await super.initialize();
|
|
175228
175228
|
const homeAssistant = await this.agent.load(HomeAssistantEntityBehavior);
|
|
175229
175229
|
this.update(homeAssistant.entity);
|
|
175230
|
-
this.reactTo(homeAssistant.onChange, this.update);
|
|
175230
|
+
this.reactTo(homeAssistant.onChange, this.update, { offline: true });
|
|
175231
175231
|
}
|
|
175232
175232
|
update(entity) {
|
|
175233
175233
|
const state = entity.state.state;
|
|
@@ -175267,7 +175267,7 @@ var StandalonePowerServer = class extends ElectricalPowerMeasurementServer {
|
|
|
175267
175267
|
await super.initialize();
|
|
175268
175268
|
const homeAssistant = await this.agent.load(HomeAssistantEntityBehavior);
|
|
175269
175269
|
this.update(homeAssistant.entity);
|
|
175270
|
-
this.reactTo(homeAssistant.onChange, this.update);
|
|
175270
|
+
this.reactTo(homeAssistant.onChange, this.update, { offline: true });
|
|
175271
175271
|
}
|
|
175272
175272
|
update(entity) {
|
|
175273
175273
|
if (!entity.state || !entity.state.attributes) {
|
|
@@ -175325,7 +175325,7 @@ var StandaloneEnergyServer = class extends EnergyFeaturedBase {
|
|
|
175325
175325
|
await super.initialize();
|
|
175326
175326
|
const homeAssistant = await this.agent.load(HomeAssistantEntityBehavior);
|
|
175327
175327
|
this.update(homeAssistant.entity);
|
|
175328
|
-
this.reactTo(homeAssistant.onChange, this.update);
|
|
175328
|
+
this.reactTo(homeAssistant.onChange, this.update, { offline: true });
|
|
175329
175329
|
}
|
|
175330
175330
|
update(entity) {
|
|
175331
175331
|
if (!entity.state || !entity.state.attributes) {
|
|
@@ -175381,7 +175381,7 @@ var FlowMeasurementServerBase = class extends FlowMeasurementServer {
|
|
|
175381
175381
|
await super.initialize();
|
|
175382
175382
|
const homeAssistant = await this.agent.load(HomeAssistantEntityBehavior);
|
|
175383
175383
|
this.update(homeAssistant.entity);
|
|
175384
|
-
this.reactTo(homeAssistant.onChange, this.update);
|
|
175384
|
+
this.reactTo(homeAssistant.onChange, this.update, { offline: true });
|
|
175385
175385
|
}
|
|
175386
175386
|
update(entity) {
|
|
175387
175387
|
if (!entity.state || !entity.state.attributes) {
|
|
@@ -175473,7 +175473,7 @@ var FormaldehydeConcentrationMeasurementServer2 = class extends FormaldehydeConc
|
|
|
175473
175473
|
await super.initialize();
|
|
175474
175474
|
const homeAssistant = await this.agent.load(HomeAssistantEntityBehavior);
|
|
175475
175475
|
this.update(homeAssistant.entity);
|
|
175476
|
-
this.reactTo(homeAssistant.onChange, this.update);
|
|
175476
|
+
this.reactTo(homeAssistant.onChange, this.update, { offline: true });
|
|
175477
175477
|
}
|
|
175478
175478
|
update(entity) {
|
|
175479
175479
|
if (!entity.state || !entity.state.attributes) {
|
|
@@ -175504,7 +175504,7 @@ var FormaldehydeAirQualityServer = class extends FormaldehydeAirQualityServerBas
|
|
|
175504
175504
|
await super.initialize();
|
|
175505
175505
|
const homeAssistant = await this.agent.load(HomeAssistantEntityBehavior);
|
|
175506
175506
|
this.update(homeAssistant.entity);
|
|
175507
|
-
this.reactTo(homeAssistant.onChange, this.update);
|
|
175507
|
+
this.reactTo(homeAssistant.onChange, this.update, { offline: true });
|
|
175508
175508
|
}
|
|
175509
175509
|
update(entity) {
|
|
175510
175510
|
const state = entity.state.state;
|
|
@@ -175563,7 +175563,7 @@ var IlluminanceMeasurementServerBase = class extends IlluminanceMeasurementServe
|
|
|
175563
175563
|
await super.initialize();
|
|
175564
175564
|
const homeAssistant = await this.agent.load(HomeAssistantEntityBehavior);
|
|
175565
175565
|
this.update(homeAssistant.entity);
|
|
175566
|
-
this.reactTo(homeAssistant.onChange, this.update);
|
|
175566
|
+
this.reactTo(homeAssistant.onChange, this.update, { offline: true });
|
|
175567
175567
|
}
|
|
175568
175568
|
update(entity) {
|
|
175569
175569
|
if (!entity.state || !entity.state.attributes) {
|
|
@@ -175647,7 +175647,7 @@ var NitrogenDioxideConcentrationMeasurementServer2 = class extends NitrogenDioxi
|
|
|
175647
175647
|
await super.initialize();
|
|
175648
175648
|
const homeAssistant = await this.agent.load(HomeAssistantEntityBehavior);
|
|
175649
175649
|
this.update(homeAssistant.entity);
|
|
175650
|
-
this.reactTo(homeAssistant.onChange, this.update);
|
|
175650
|
+
this.reactTo(homeAssistant.onChange, this.update, { offline: true });
|
|
175651
175651
|
}
|
|
175652
175652
|
update(entity) {
|
|
175653
175653
|
if (!entity.state || !entity.state.attributes) {
|
|
@@ -175677,7 +175677,7 @@ var No2AirQualityServer = class extends No2AirQualityServerBase {
|
|
|
175677
175677
|
await super.initialize();
|
|
175678
175678
|
const homeAssistant = await this.agent.load(HomeAssistantEntityBehavior);
|
|
175679
175679
|
this.update(homeAssistant.entity);
|
|
175680
|
-
this.reactTo(homeAssistant.onChange, this.update);
|
|
175680
|
+
this.reactTo(homeAssistant.onChange, this.update, { offline: true });
|
|
175681
175681
|
}
|
|
175682
175682
|
update(entity) {
|
|
175683
175683
|
const state = entity.state.state;
|
|
@@ -175740,7 +175740,7 @@ var OzoneConcentrationMeasurementServer2 = class extends OzoneConcentrationMeasu
|
|
|
175740
175740
|
await super.initialize();
|
|
175741
175741
|
const homeAssistant = await this.agent.load(HomeAssistantEntityBehavior);
|
|
175742
175742
|
this.update(homeAssistant.entity);
|
|
175743
|
-
this.reactTo(homeAssistant.onChange, this.update);
|
|
175743
|
+
this.reactTo(homeAssistant.onChange, this.update, { offline: true });
|
|
175744
175744
|
}
|
|
175745
175745
|
update(entity) {
|
|
175746
175746
|
if (!entity.state || !entity.state.attributes) {
|
|
@@ -175770,7 +175770,7 @@ var OzoneAirQualityServer = class extends OzoneAirQualityServerBase {
|
|
|
175770
175770
|
await super.initialize();
|
|
175771
175771
|
const homeAssistant = await this.agent.load(HomeAssistantEntityBehavior);
|
|
175772
175772
|
this.update(homeAssistant.entity);
|
|
175773
|
-
this.reactTo(homeAssistant.onChange, this.update);
|
|
175773
|
+
this.reactTo(homeAssistant.onChange, this.update, { offline: true });
|
|
175774
175774
|
}
|
|
175775
175775
|
update(entity) {
|
|
175776
175776
|
const state = entity.state.state;
|
|
@@ -175833,7 +175833,7 @@ var Pm1ConcentrationMeasurementServer2 = class extends Pm1ConcentrationMeasureme
|
|
|
175833
175833
|
await super.initialize();
|
|
175834
175834
|
const homeAssistant = await this.agent.load(HomeAssistantEntityBehavior);
|
|
175835
175835
|
this.update(homeAssistant.entity);
|
|
175836
|
-
this.reactTo(homeAssistant.onChange, this.update);
|
|
175836
|
+
this.reactTo(homeAssistant.onChange, this.update, { offline: true });
|
|
175837
175837
|
}
|
|
175838
175838
|
update(entity) {
|
|
175839
175839
|
if (!entity.state || !entity.state.attributes) {
|
|
@@ -175863,7 +175863,7 @@ var Pm1AirQualityServer = class extends Pm1AirQualityServerBase {
|
|
|
175863
175863
|
await super.initialize();
|
|
175864
175864
|
const homeAssistant = await this.agent.load(HomeAssistantEntityBehavior);
|
|
175865
175865
|
this.update(homeAssistant.entity);
|
|
175866
|
-
this.reactTo(homeAssistant.onChange, this.update);
|
|
175866
|
+
this.reactTo(homeAssistant.onChange, this.update, { offline: true });
|
|
175867
175867
|
}
|
|
175868
175868
|
update(entity) {
|
|
175869
175869
|
const state = entity.state.state;
|
|
@@ -175946,7 +175946,7 @@ var RadonConcentrationMeasurementServer2 = class extends RadonConcentrationMeasu
|
|
|
175946
175946
|
await super.initialize();
|
|
175947
175947
|
const homeAssistant = await this.agent.load(HomeAssistantEntityBehavior);
|
|
175948
175948
|
this.update(homeAssistant.entity);
|
|
175949
|
-
this.reactTo(homeAssistant.onChange, this.update);
|
|
175949
|
+
this.reactTo(homeAssistant.onChange, this.update, { offline: true });
|
|
175950
175950
|
}
|
|
175951
175951
|
update(entity) {
|
|
175952
175952
|
if (!entity.state || !entity.state.attributes) {
|
|
@@ -175976,7 +175976,7 @@ var RadonAirQualityServer = class extends RadonAirQualityServerBase {
|
|
|
175976
175976
|
await super.initialize();
|
|
175977
175977
|
const homeAssistant = await this.agent.load(HomeAssistantEntityBehavior);
|
|
175978
175978
|
this.update(homeAssistant.entity);
|
|
175979
|
-
this.reactTo(homeAssistant.onChange, this.update);
|
|
175979
|
+
this.reactTo(homeAssistant.onChange, this.update, { offline: true });
|
|
175980
175980
|
}
|
|
175981
175981
|
update(entity) {
|
|
175982
175982
|
const state = entity.state.state;
|
|
@@ -176094,7 +176094,7 @@ var TvocConcentrationMeasurementServer = class extends TvocConcentrationMeasurem
|
|
|
176094
176094
|
await super.initialize();
|
|
176095
176095
|
const homeAssistant = await this.agent.load(HomeAssistantEntityBehavior);
|
|
176096
176096
|
this.update(homeAssistant.entity);
|
|
176097
|
-
this.reactTo(homeAssistant.onChange, this.update);
|
|
176097
|
+
this.reactTo(homeAssistant.onChange, this.update, { offline: true });
|
|
176098
176098
|
}
|
|
176099
176099
|
update(entity) {
|
|
176100
176100
|
if (!entity.state || !entity.state.attributes) {
|
|
@@ -176144,7 +176144,7 @@ var TvocAirQualityServer = class extends TvocAirQualityServerBase {
|
|
|
176144
176144
|
await super.initialize();
|
|
176145
176145
|
const homeAssistant = await this.agent.load(HomeAssistantEntityBehavior);
|
|
176146
176146
|
this.update(homeAssistant.entity);
|
|
176147
|
-
this.reactTo(homeAssistant.onChange, this.update);
|
|
176147
|
+
this.reactTo(homeAssistant.onChange, this.update, { offline: true });
|
|
176148
176148
|
}
|
|
176149
176149
|
update(entity) {
|
|
176150
176150
|
if (!entity.state || !entity.state.attributes) {
|
|
@@ -176211,7 +176211,7 @@ var CarbonDioxideConcentrationMeasurementServer2 = class extends CarbonDioxideCo
|
|
|
176211
176211
|
await super.initialize();
|
|
176212
176212
|
const homeAssistant = await this.agent.load(HomeAssistantEntityBehavior);
|
|
176213
176213
|
this.update(homeAssistant.entity);
|
|
176214
|
-
this.reactTo(homeAssistant.onChange, this.update);
|
|
176214
|
+
this.reactTo(homeAssistant.onChange, this.update, { offline: true });
|
|
176215
176215
|
}
|
|
176216
176216
|
update(entity) {
|
|
176217
176217
|
if (!entity.state || !entity.state.attributes) {
|
|
@@ -176244,7 +176244,7 @@ var Co2AirQualityServer = class extends Co2AirQualityServerBase {
|
|
|
176244
176244
|
await super.initialize();
|
|
176245
176245
|
const homeAssistant = await this.agent.load(HomeAssistantEntityBehavior);
|
|
176246
176246
|
this.update(homeAssistant.entity);
|
|
176247
|
-
this.reactTo(homeAssistant.onChange, this.update);
|
|
176247
|
+
this.reactTo(homeAssistant.onChange, this.update, { offline: true });
|
|
176248
176248
|
}
|
|
176249
176249
|
update(entity) {
|
|
176250
176250
|
const state = entity.state.state;
|
|
@@ -176307,7 +176307,7 @@ var Pm10ConcentrationMeasurementServer2 = class extends Pm10ConcentrationMeasure
|
|
|
176307
176307
|
await super.initialize();
|
|
176308
176308
|
const homeAssistant = await this.agent.load(HomeAssistantEntityBehavior);
|
|
176309
176309
|
this.update(homeAssistant.entity);
|
|
176310
|
-
this.reactTo(homeAssistant.onChange, this.update);
|
|
176310
|
+
this.reactTo(homeAssistant.onChange, this.update, { offline: true });
|
|
176311
176311
|
}
|
|
176312
176312
|
update(entity) {
|
|
176313
176313
|
if (!entity.state || !entity.state.attributes) {
|
|
@@ -176339,7 +176339,7 @@ var Pm10AirQualityServer = class extends Pm10AirQualityServerBase {
|
|
|
176339
176339
|
await super.initialize();
|
|
176340
176340
|
const homeAssistant = await this.agent.load(HomeAssistantEntityBehavior);
|
|
176341
176341
|
this.update(homeAssistant.entity);
|
|
176342
|
-
this.reactTo(homeAssistant.onChange, this.update);
|
|
176342
|
+
this.reactTo(homeAssistant.onChange, this.update, { offline: true });
|
|
176343
176343
|
}
|
|
176344
176344
|
update(entity) {
|
|
176345
176345
|
const state = entity.state.state;
|
|
@@ -176411,7 +176411,7 @@ var Pm25ConcentrationMeasurementServer2 = class extends Pm25ConcentrationMeasure
|
|
|
176411
176411
|
);
|
|
176412
176412
|
const homeAssistant = await this.agent.load(HomeAssistantEntityBehavior);
|
|
176413
176413
|
this.update(homeAssistant.entity);
|
|
176414
|
-
this.reactTo(homeAssistant.onChange, this.update);
|
|
176414
|
+
this.reactTo(homeAssistant.onChange, this.update, { offline: true });
|
|
176415
176415
|
}
|
|
176416
176416
|
update(entity) {
|
|
176417
176417
|
if (!entity.state || !entity.state.attributes) {
|
|
@@ -176446,7 +176446,7 @@ var Pm25AirQualityServer = class extends Pm25AirQualityServerBase {
|
|
|
176446
176446
|
logger189.debug("Pm25AirQualityServer: after super.initialize()");
|
|
176447
176447
|
const homeAssistant = await this.agent.load(HomeAssistantEntityBehavior);
|
|
176448
176448
|
this.update(homeAssistant.entity);
|
|
176449
|
-
this.reactTo(homeAssistant.onChange, this.update);
|
|
176449
|
+
this.reactTo(homeAssistant.onChange, this.update, { offline: true });
|
|
176450
176450
|
}
|
|
176451
176451
|
update(entity) {
|
|
176452
176452
|
const state = entity.state.state;
|