From 3d530f7e290ab4ac0e58a69397649241825ae20e Mon Sep 17 00:00:00 2001 From: Daniel Brooks Date: Sun, 10 May 2020 21:09:08 -0700 Subject: [PATCH] updating how you detect primary home --- package-lock.json | 2 +- package.json | 2 +- src/client/models/structure.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package-lock.json b/package-lock.json index 4b7a4712..d6845751 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "flair-api-ts", - "version": "0.0.8", + "version": "0.0.16", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index a0ea0f6d..26dbde61 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "flair-api-ts", - "version": "0.0.15", + "version": "0.0.16", "description": "A ts-node implementation of the Flair Smart Vent API", "author": "bassrock", "main": "lib/index.js", diff --git a/src/client/models/structure.ts b/src/client/models/structure.ts index a554d7a7..fbc1c03e 100644 --- a/src/client/models/structure.ts +++ b/src/client/models/structure.ts @@ -38,6 +38,6 @@ export class Structure extends Model { } public isPrimaryHome(): boolean { - return this.home && this.isActive; + return this.home; } }