Skip to content

Commit 89037c6

Browse files
committed
show Err state on power button variable
1 parent 1f9ca32 commit 89037c6

File tree

3 files changed

+4
-64
lines changed

3 files changed

+4
-64
lines changed

.gitignore

Lines changed: 2 additions & 63 deletions
Original file line numberDiff line numberDiff line change
@@ -1,64 +1,3 @@
1-
# Visual Studio 2015/2017 cache/options directory
2-
.vs/
3-
4-
# Logs
5-
logs
6-
*.log
7-
npm-debug.log*
8-
yarn-debug.log*
9-
yarn-error.log*
10-
11-
# Runtime data
12-
pids
13-
*.pid
14-
*.seed
15-
*.pid.lock
16-
17-
# Directory for instrumented libs generated by jscoverage/JSCover
18-
lib-cov
19-
20-
# Coverage directory used by tools like istanbul
21-
coverage
22-
23-
# nyc test coverage
24-
.nyc_output
25-
26-
# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
27-
.grunt
28-
29-
# Bower dependency directory (https://bower.io/)
30-
bower_components
31-
32-
# node-waf configuration
33-
.lock-wscript
34-
35-
# Compiled binary addons (https://nodejs.org/api/addons.html)
36-
build/Release
37-
38-
# Dependency directories
1+
.DS_Store
392
node_modules/
40-
jspm_packages/
41-
42-
# TypeScript v1 declaration files
43-
typings/
44-
45-
# Optional npm cache directory
46-
.npm
47-
48-
# Optional eslint cache
49-
.eslintcache
50-
51-
# Optional REPL history
52-
.node_repl_history
53-
54-
# Output of 'npm pack'
55-
*.tgz
56-
57-
# Yarn Integrity file
58-
.yarn-integrity
59-
60-
# dotenv environment variables file
61-
.env
62-
63-
# next.js build output
64-
.next
3+
package-lock.json

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.2.1",
3+
"version": "1.2.2",
44
"api_version": "1.0.0",
55
"keywords": [
66
"TV"

src/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -217,6 +217,7 @@ instance.prototype.get_state = function() {
217217
}
218218
})
219219
.catch((error) => {
220+
self.setVariable('power', 'Err'); //show error on the button - if the tv gets unplugged or something, the variable won't automatically switch to "Off"
220221
self.handleError(error);
221222
});
222223

0 commit comments

Comments
 (0)