Skip to content

Commit

Permalink
Merge pull request #1 from nielsth/hotfix-illegal-value-ambient-light…
Browse files Browse the repository at this point in the history
…-level

Hotfix illegal value ambient light level
  • Loading branch information
nielsth authored May 27, 2022
2 parents 513a343 + 1e64ff8 commit 85737d0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ MiFlowerCarePlugin.prototype.getStatusLowLight = function (callback) {
};

MiFlowerCarePlugin.prototype.getCurrentAmbientLightLevel = function (callback) {
callback(null, this.storedData.data ? this.storedData.data.lux : 0);
callback(null, this.storedData.data ? this.storedData.data.lux : 0.001);
};

MiFlowerCarePlugin.prototype.getCurrentTemperature = function (callback) {
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "homebridge-mi-flower-care",
"version": "1.1.3",
"version": "1.1.4",
"description": "This is a homebridge plugin for the Xiaomi Mi Flora / Xiaomi Flower Care devices.",
"main": "index.js",
"scripts": {
Expand All @@ -20,7 +20,7 @@
"xiaomi",
"flower"
],
"author": "Luca Becker, Tobias Tiemerding",
"author": "Luca Becker, Tobias Tiemerding, Niels ten Have",
"license": "ISC",
"bugs": {
"url": "https://github.com/nielsth/homebridge-mi-flower-care/issues"
Expand Down

0 comments on commit 85737d0

Please sign in to comment.