Skip to content

Disallow non-numbers for ts/lc handling on states #3057

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
May 15, 2025
Merged

Conversation

Apollon77
Copy link
Collaborator

For Bugfixes:

Link the issue which is closed by this PR
In Apollon77/ioBroker.tuya#618 it happened (I do not understand how, but seems to happen according to log) that "ts" ad "lc" got null. js.controller only checks for !== undefined

Implementation details
ts and lc needs to be numbers, so check for that instead of just undefined.

Tests

  • I have added tests to avoid a recursion of this bug
  • It is not possible to test for this bug

@foxriver76 foxriver76 merged commit 5cf8c0f into master May 15, 2025
18 checks passed
@foxriver76 foxriver76 deleted the disallow-ts-null branch May 15, 2025 07:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants