Skip to content

Commit

Permalink
Update index.js
Browse files Browse the repository at this point in the history
  • Loading branch information
NebzHB authored Jan 20, 2024
1 parent 2d5cb6b commit 1da84c3
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -511,7 +511,6 @@ JeedomPlatform.prototype.AccessoireCreateHomebridge = function(eqLogic) {
Serv.eqLogic=eqLogic;
Serv.actions={};
Serv.infos={};
Serv.infos.moving=null;
if(cmd.moving) {
Serv.infos.moving=cmd.moving;
}
Expand Down Expand Up @@ -740,7 +739,6 @@ JeedomPlatform.prototype.AccessoireCreateHomebridge = function(eqLogic) {
Serv.actions={};
Serv.infos={};
Serv.infos.state=cmd.state;
Serv.infos.moving=null;
if(cmd.moving) {
Serv.infos.moving=cmd.moving;
}
Expand Down Expand Up @@ -4586,7 +4584,7 @@ JeedomPlatform.prototype.getAccessoryValue = function(characteristic, service, i
}
break;
case Characteristic.PositionState.UUID :
if(moving in service.infos && service.infos.moving !== null) {
if('moving' in service.infos && service.infos.moving !== null) {
for (const cmd of cmdList) {
if (cmd.generic_type == 'FLAP_MOVING' || cmd.generic_type == 'WINDOW_MOVING') {
switch(parseInt(cmd.currentValue)) {
Expand Down

0 comments on commit 1da84c3

Please sign in to comment.