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 a7488b7 commit 1bcc38c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -511,6 +511,7 @@ 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 @@ -739,6 +740,7 @@ 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 @@ -4584,7 +4586,7 @@ JeedomPlatform.prototype.getAccessoryValue = function(characteristic, service, i
}
break;
case Characteristic.PositionState.UUID :
if(moving in service.infos) {
if(moving in service.infos && service.infos.moving !== null) {

Check failure on line 4589 in index.js

View workflow job for this annotation

GitHub Actions / build (18.x)

'moving' is not defined

Check failure on line 4589 in index.js

View workflow job for this annotation

GitHub Actions / build (20.x)

'moving' is not defined

Check failure on line 4589 in index.js

View workflow job for this annotation

GitHub Actions / build (21.x)

'moving' is not defined
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 1bcc38c

Please sign in to comment.