Skip to content
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

Fix instance of Item checks don't work #290

Merged
merged 2 commits into from
Aug 12, 2023

Conversation

florian-h05
Copy link
Contributor

Fixes an issue, where the webpacked, globals injected time.toZDT(items.Item) did not work,
because #283 did revert #273 and therefore constructor names are not kept.

This introduces a _isItem helper method, which checks both constructor name or unique properties (rawItem).

Fixes an issue, where the webpacked, globals injected `time.toZDT(items.Item)` did not work,
because openhab#283 did revert openhab#273 and therefore constructor names are not kept.

Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
@florian-h05 florian-h05 requested a review from a team as a code owner August 12, 2023 18:00
@florian-h05 florian-h05 added the bug Something isn't working label Aug 12, 2023
@florian-h05 florian-h05 added this to the to be released milestone Aug 12, 2023
@florian-h05 florian-h05 changed the title Fix instance of Item checks don`t work Fix instance of Item checks don't work Aug 12, 2023
@florian-h05 florian-h05 merged commit ee2e51f into openhab:main Aug 12, 2023
4 checks passed
@florian-h05 florian-h05 deleted the fix-instanceof-item branch August 12, 2023 18:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant