@kohost/api-client 3.8.0 → 3.8.1

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.
@@ -126,10 +126,10 @@ class Room extends Entity {
126
126
  }
127
127
 
128
128
  get hasLight() {
129
- const hasSubTypeLight = this.switches?.some((sw) => {
130
- return sw.subType === "light" || sw.subType === "fan";
129
+ const hasDiscriminatorLight = this.switches?.some((sw) => {
130
+ return sw.discriminator === "light" || sw.discriminator === "fan";
131
131
  });
132
- return this.hasDimmer || hasSubTypeLight;
132
+ return this.hasDimmer || hasDiscriminatorLight;
133
133
  }
134
134
 
135
135
  get occupied() {
@@ -154,9 +154,6 @@
154
154
  "name": {
155
155
  "type": "string"
156
156
  },
157
- "subType": {
158
- "type": ["string", "null"]
159
- },
160
157
  "supportedNotifications": {
161
158
  "type": "array",
162
159
  "uniqueItems": true,
@@ -7281,9 +7281,6 @@ var require_definitions = __commonJS({
7281
7281
  name: {
7282
7282
  type: "string"
7283
7283
  },
7284
- subType: {
7285
- type: ["string", "null"]
7286
- },
7287
7284
  supportedNotifications: {
7288
7285
  type: "array",
7289
7286
  uniqueItems: true,
@@ -10827,10 +10824,10 @@ var require_Room = __commonJS({
10827
10824
  return this.mediaSources?.length > 0;
10828
10825
  }
10829
10826
  get hasLight() {
10830
- const hasSubTypeLight = this.switches?.some((sw) => {
10831
- return sw.subType === "light" || sw.subType === "fan";
10827
+ const hasDiscriminatorLight = this.switches?.some((sw) => {
10828
+ return sw.discriminator === "light" || sw.discriminator === "fan";
10832
10829
  });
10833
- return this.hasDimmer || hasSubTypeLight;
10830
+ return this.hasDimmer || hasDiscriminatorLight;
10834
10831
  }
10835
10832
  get occupied() {
10836
10833
  const now = /* @__PURE__ */ new Date();