Skip to content

Commit

Permalink
Release 2.9.5
Browse files Browse the repository at this point in the history
  • Loading branch information
jghaanstra committed Jan 22, 2019
1 parent 607742d commit c9177e8
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions APPSTORE.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,5 @@ For Homey to be able to communicate with devices over the miIO protocol a unique
Xiaomi has recently released an update for its v1 vacuum that enabled it for the zoned cleaning and goto function that was previously only available to the v2 vacuum. Using the action cards that utilize these functions are a bit challenging. If you want to use these cards please read the instructions [here](https://github.com/jghaanstra/com.xiaomi-miio/blob/master/docs/mirobot_zonecleanup.md).

## Changelog
### 2019-01-16 - v2.9.4
* FIX: better error handling to avoid app crashes
### 2019-01-16 - v2.9.5
* FIX: some more error handling to avoid app crashes
2 changes: 1 addition & 1 deletion app.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"en": [ "Xiaomi", "Mi", "Mi Home", "miio", "vacuumcleaner", "robot", "yeelight", "yeelights", "purifier", "humidifier", "philips", "eyecare", "powerplug", "gateway" ],
"nl": [ "Xiaomi", "Mi", "Mi home", "miio", "stofzuiger", "robot", "yeelight", "yeelights", "luchtreiniger", "luchtbevochtiger", "philips", "eyecare", "powerplug", "gateway" ]
},
"version": "2.9.4",
"version": "2.9.5",
"compatibility": ">=1.5.12",
"author": {
"name": "Jelger Haanstra",
Expand Down
8 changes: 4 additions & 4 deletions drivers/gateway/device.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ class GatewayDevice extends Homey.Device {
}

// LISTENERS FOR UPDATING CAPABILITIES
onCapabilityOnoff(value, opts) {
onCapabilityOnoff(value, opts, callback) {
if (this.miio) {
return this.miio.light.setPower(value)
} else {
Expand All @@ -37,7 +37,7 @@ class GatewayDevice extends Homey.Device {
}
}

onCapabilityDim(value, opts) {
onCapabilityDim(value, opts, callback) {
if (this.miio) {
const brightness = value * 100;
return this.miio.light.setBrightness(brightness);
Expand Down Expand Up @@ -71,11 +71,11 @@ class GatewayDevice extends Homey.Device {
} else {
this.setUnavailable(Homey.__('unreachable'));
this.createDevice();
callback('Device unreachable, please try again ...', false)
return Promise.reject('Device unreachable, please try again ...');
}
}

onCapabilityAlarm(value, opts) {
onCapabilityAlarm(value, opts, callback) {
if (this.miio) {
const state = value == 'armed' ? true : false;
return this.miio.setArming(state);
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "com.xiaomi-miio",
"version": "2.9.4",
"version": "2.9.5",
"description": "Xiaomi Mi Home",
"main": "app.js",
"dependencies": {
Expand Down

0 comments on commit c9177e8

Please sign in to comment.