Skip to content

Commit

Permalink
1.1.5
Browse files Browse the repository at this point in the history
  • Loading branch information
nicoduj committed Jun 3, 2021
1 parent 442ccfc commit 07b6b62
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 9 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

All notable changes to this project will be documented in this file.

## 1.1.5

- [FIX] fixing incompatibility with updated dep (cheerio) #48 #49

## 1.1.4

- [FIX] unresponsive in case of negative temperature #46
Expand Down
16 changes: 9 additions & 7 deletions gogogateAPI.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
var request = require('request');
const $ = require('cheerio');
const Cheerio = require('cheerio');
const GogogateTools = require('./gogogateTools.js');

var EventEmitter = require('events');
Expand Down Expand Up @@ -157,15 +157,17 @@ GogogateAPI.prototype = {
that.log('ERROR - getDoors - Can not retrieve doors');
that.emit('doorsRetrieveError');
} else {
var data = Cheerio.load(statusbody);

that.discoverdDoors = [
$('input[name="dname1"]', '#config-door1', statusbody).val(),
$('input[name="dname2"]', '#config-door2', statusbody).val(),
$('input[name="dname3"]', '#config-door3', statusbody).val(),
data('input[name="dname1"]', '#config-door1').val(),
data('input[name="dname2"]', '#config-door2').val(),
data('input[name="dname3"]', '#config-door3').val(),
];
that.discoverdSensors = [
$('input[name="door1"]', '#config-door1', statusbody).val(),
$('input[name="door2"]', '#config-door2', statusbody).val(),
$('input[name="door3"]', '#config-door3', statusbody).val(),
data('input[name="door1"]', '#config-door1').val(),
data('input[name="door2"]', '#config-door2').val(),
data('input[name="door3"]', '#config-door3').val(),
];
that.log.debug('INFO - DOORS NAMES found : ' + that.discoverdDoors);
that.log.debug('INFO - SENSORS NAMES found : ' + that.discoverdSensors);
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-gogogate2",
"version": "1.1.4",
"version": "1.1.5",
"author": "Nicolas Dujardin",
"description": "Publish your gogogate 2 to homebridge",
"main": "index.js",
Expand All @@ -23,7 +23,7 @@
"homekit"
],
"dependencies": {
"cheerio": "^1.0.0-rc.3",
"cheerio": "^1.0.0-rc.9",
"request": "^2.88.2"
},
"bugs": {
Expand Down

0 comments on commit 07b6b62

Please sign in to comment.