Skip to content

Commit 0bf1f18

Browse files
authored
Merge pull request #16 from zerbzman/master
Fixed Equality Bug
2 parents 67e2821 + a5021f1 commit 0bf1f18

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ instance.prototype.init = function () {
1919
self.status(self.STATUS_UNKNOWN);
2020

2121
if(self.config.host) {
22-
if (self.config.firmware === 2) {
22+
if (self.config.firmware === "2") {
2323
self.tv = new smartcast(`${self.config.host}:9000`);
2424
} else {
2525
self.tv = new smartcast(self.config.host);
@@ -38,7 +38,7 @@ instance.prototype.updateConfig = function (config) {
3838
self.config = config;
3939

4040
if(self.config.host) {
41-
if (self.config.firmware === 2) {
41+
if (self.config.firmware === "2") {
4242
self.tv = new smartcast(`${self.config.host}:9000`);
4343
} else {
4444
self.tv = new smartcast(self.config.host);

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "vizio-smartcast",
3-
"version": "1.1.5",
3+
"version": "1.1.6",
44
"api_version": "1.0.0",
55
"keywords": [
66
"TV"

0 commit comments

Comments
 (0)