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

Matter Switch: ensure device init is called on added #1445

Merged
merged 2 commits into from
Jun 17, 2024

Conversation

ctowns
Copy link
Contributor

@ctowns ctowns commented Jun 14, 2024

No description provided.

@ctowns ctowns requested review from samadDotDev and Con-Tejus June 14, 2024 23:01
Copy link

github-actions bot commented Jun 14, 2024

Channel deleted.

Copy link

github-actions bot commented Jun 14, 2024

Test Results

   59 files    375 suites   0s ⏱️
1 807 tests 1 795 ✅ 0 💤 0 ❌ 12 🔥
3 129 runs  3 117 ✅ 0 💤 0 ❌ 12 🔥

For more details on these errors, see this check.

Results for commit ed8fe8f.

♻️ This comment has been updated with latest results.

Copy link

github-actions bot commented Jun 14, 2024

File Coverage
All files 94%
/home/runner/work/SmartThingsEdgeDrivers/SmartThingsEdgeDrivers/drivers/SmartThings/matter-switch/src/init.lua 96%
/home/runner/work/SmartThingsEdgeDrivers/SmartThingsEdgeDrivers/drivers/SmartThings/matter-switch/src/eve-energy/init.lua 91%

Minimum allowed coverage is 90%

Generated by 🐒 cobertura-action against ed8fe8f

Comment on lines +517 to +518
-- call device init in case init is not called after added due to device caching
device_init(driver, device)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just calling out here as well that this has been audited to be idempotent

@ctowns ctowns force-pushed the bugfix/matter-switch-init branch from c49e121 to ed8fe8f Compare June 15, 2024 00:48
@ctowns ctowns merged commit 1d02cec into main Jun 17, 2024
9 of 11 checks passed
@ctowns ctowns deleted the bugfix/matter-switch-init branch June 17, 2024 14:56
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.

3 participants