@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.
package/dist/esm/utils.js CHANGED
@@ -7324,9 +7324,6 @@ var require_definitions = __commonJS({
7324
7324
  name: {
7325
7325
  type: "string"
7326
7326
  },
7327
- subType: {
7328
- type: ["string", "null"]
7329
- },
7330
7327
  supportedNotifications: {
7331
7328
  type: "array",
7332
7329
  uniqueItems: true,
@@ -10907,10 +10904,10 @@ var require_Room = __commonJS({
10907
10904
  return this.mediaSources?.length > 0;
10908
10905
  }
10909
10906
  get hasLight() {
10910
- const hasSubTypeLight = this.switches?.some((sw) => {
10911
- return sw.subType === "light" || sw.subType === "fan";
10907
+ const hasDiscriminatorLight = this.switches?.some((sw) => {
10908
+ return sw.discriminator === "light" || sw.discriminator === "fan";
10912
10909
  });
10913
- return this.hasDimmer || hasSubTypeLight;
10910
+ return this.hasDimmer || hasDiscriminatorLight;
10914
10911
  }
10915
10912
  get occupied() {
10916
10913
  const now = /* @__PURE__ */ new Date();