fix error when device offline - #478
Conversation
There was a problem hiding this comment.
Copilot wasn't able to review any files in this pull request.
Files not reviewed (1)
- main.js: Generated file
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
|
error message |
|
@SimonFischer04 den hier kennen wir am besten noch mitnehmen vor dem stable, magst du auch Reviewen ? |
| !clientDetails[deviceIP].client.connection | ||
| ) { | ||
| this.log.debug(`[onStateChange] Device ${deviceName} not connected, acknowledging state change`); | ||
| await this.setStateAsync(id, { val: state.val, ack: true }); |
There was a problem hiding this comment.
warum wird hier ein state acknowledged, der explizit nicht zum device gesendet wird?
Ist das nicht genau der Sinn von ack?
There was a problem hiding this comment.
Eigentlich kann der ganze change block hier wieder komplett weg.
Dan PR ok von meiner Seite
No description provided.