Skip to content
This repository was archived by the owner on Oct 30, 2021. It is now read-only.

Commit

Permalink
Plugin now handles internet or ac disconnects correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
Kevin Van den Abeele committed Jul 1, 2020
1 parent 66d1957 commit dd1959d
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,5 @@ wideq_state.json
test.js
.DS_STORE
*.js.map
*.js
*.js
*.map
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "homebridge-lg-airco",
"version": "0.1.2",
"version": "0.1.3",
"description": "Homebridge plugin to control a Smart Thinq enabled LG airco unit. Makes use of WideQ => https://github.com/sampsyo/wideq",
"main": "src/index.js",
"scripts": {
Expand Down
4 changes: 4 additions & 0 deletions resources/wideq/example.py
Original file line number Diff line number Diff line change
Expand Up @@ -246,6 +246,10 @@ def example(country: str, language: str, path: str, verbose: bool,
LOGGER.error(exc.msg)
sys.exit(1)

except:
LOGGER.error(sys.exc_info()[0])
sys.exit(1)

# Save the updated state.
state = client.dump()
with open(STATE_FILE, 'w') as f:
Expand Down

0 comments on commit dd1959d

Please sign in to comment.