@riddix/hamh 2.1.0-alpha.549 → 2.1.0-alpha.551
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
|
@@ -168365,7 +168365,7 @@ var LevelControlServerBase = class extends FeaturedBase4 {
|
|
|
168365
168365
|
this.reactTo(homeAssistant.onChange, this.update);
|
|
168366
168366
|
}
|
|
168367
168367
|
update(entity) {
|
|
168368
|
-
if (!entity.state) {
|
|
168368
|
+
if (!entity.state || !entity.state.attributes) {
|
|
168369
168369
|
return;
|
|
168370
168370
|
}
|
|
168371
168371
|
const { state } = entity;
|
|
@@ -168648,7 +168648,7 @@ var FanControlServerBase = class extends FeaturedBase5 {
|
|
|
168648
168648
|
}
|
|
168649
168649
|
}
|
|
168650
168650
|
update(entity) {
|
|
168651
|
-
if (!entity.state) {
|
|
168651
|
+
if (!entity.state || !entity.state.attributes) {
|
|
168652
168652
|
return;
|
|
168653
168653
|
}
|
|
168654
168654
|
const config10 = this.state.config;
|
|
@@ -170574,7 +170574,7 @@ var ThermostatServerBase = class extends FullFeaturedBase {
|
|
|
170574
170574
|
}
|
|
170575
170575
|
// biome-ignore lint/correctness/noUnusedPrivateClassMembers: Called via thermostatPostInitialize + prototype copy
|
|
170576
170576
|
update(entity) {
|
|
170577
|
-
if (!entity.state) {
|
|
170577
|
+
if (!entity.state || !entity.state.attributes) {
|
|
170578
170578
|
return;
|
|
170579
170579
|
}
|
|
170580
170580
|
const homeAssistant = this.agent.get(HomeAssistantEntityBehavior);
|
|
@@ -171903,7 +171903,7 @@ var GenericSwitchServerBase = class extends FeaturedBase7 {
|
|
|
171903
171903
|
handleEventChange() {
|
|
171904
171904
|
const homeAssistant = this.agent.get(HomeAssistantEntityBehavior);
|
|
171905
171905
|
const entity = homeAssistant.entity;
|
|
171906
|
-
if (!entity?.state) return;
|
|
171906
|
+
if (!entity?.state || !entity.state.attributes) return;
|
|
171907
171907
|
const attrs = entity.state.attributes;
|
|
171908
171908
|
const eventType = attrs.event_type;
|
|
171909
171909
|
if (!eventType) return;
|
|
@@ -172254,7 +172254,7 @@ var ColorControlServerBase = class extends FeaturedBase8 {
|
|
|
172254
172254
|
this.reactTo(homeAssistant.onChange, this.update);
|
|
172255
172255
|
}
|
|
172256
172256
|
update(entity) {
|
|
172257
|
-
if (!entity.state) {
|
|
172257
|
+
if (!entity.state || !entity.state.attributes) {
|
|
172258
172258
|
return;
|
|
172259
172259
|
}
|
|
172260
172260
|
const config10 = this.state.config;
|