Skip to content

Commit

Permalink
updating how you detect primary home
Browse files Browse the repository at this point in the history
  • Loading branch information
bassrock committed May 11, 2020
1 parent 088914d commit 3d530f7
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
2 changes: 1 addition & 1 deletion src/client/models/structure.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,6 @@ export class Structure extends Model {
}

public isPrimaryHome(): boolean {
return this.home && this.isActive;
return this.home;
}
}

0 comments on commit 3d530f7

Please sign in to comment.