File tree Expand file tree Collapse file tree 2 files changed +28
-20
lines changed Expand file tree Collapse file tree 2 files changed +28
-20
lines changed Original file line number Diff line number Diff line change @@ -31,7 +31,15 @@ instance.prototype.init = function () {
31
31
instance . prototype . updateConfig = function ( config ) {
32
32
var self = this ;
33
33
self . config = config ;
34
- self . loadInputs ( ) ;
34
+
35
+ if ( self . config . host ) {
36
+ self . tv = new smartcast ( self . config . host ) ;
37
+
38
+ if ( self . config . authToken ) {
39
+ self . tv . pairing . useAuthToken ( self . config . authToken ) ;
40
+ self . loadInputs ( ) ;
41
+ }
42
+ }
35
43
} ;
36
44
37
45
instance . prototype . loadInputs = function ( ) {
Original file line number Diff line number Diff line change 1
1
{
2
- "name" : " vizio-smartcast" ,
3
- "version" : " 1.1.3 " ,
4
- "api_version" : " 1.0.0" ,
5
- "keywords" : [
6
- " TV"
7
- ],
8
- "manufacturer" : " VIZIO" ,
9
- "product" : " SmartCast" ,
10
- "shortname" : " smartcast" ,
11
- "description" : " VIZIO SmartCast plugin for Companion" ,
12
- "main" : " index.js" ,
13
- "scripts" : {
14
- "test" : " echo \" Error: no test specified\" && exit 1"
15
- },
16
- "author" :
" Jeffrey Davidsz <[email protected] >" ,
17
- "license" : " MIT" ,
18
- "dependencies" : {
19
- "vizio-smart-cast" : " ^1.3.0"
20
- }
2
+ "name" : " vizio-smartcast" ,
3
+ "version" : " 1.1.4 " ,
4
+ "api_version" : " 1.0.0" ,
5
+ "keywords" : [
6
+ " TV"
7
+ ],
8
+ "manufacturer" : " VIZIO" ,
9
+ "product" : " SmartCast" ,
10
+ "shortname" : " smartcast" ,
11
+ "description" : " VIZIO SmartCast plugin for Companion" ,
12
+ "main" : " index.js" ,
13
+ "scripts" : {
14
+ "test" : " echo \" Error: no test specified\" && exit 1"
15
+ },
16
+ "author" :
" Jeffrey Davidsz <[email protected] >" ,
17
+ "license" : " MIT" ,
18
+ "dependencies" : {
19
+ "vizio-smart-cast" : " ^1.3.0"
20
+ }
21
21
}
You can’t perform that action at this time.
0 commit comments