Matter Switch: Remove ghost events, re-provision after driver switch#2978
Conversation
|
Channel deleted. |
Test Results 72 files 510 suites 0s ⏱️ Results for commit 5b1d6bd. |
|
Minimum allowed coverage is Generated by 🐒 cobertura-action against 5b1d6bd |
I am not 100% sure about this, but I thought we did this to make sure there was an event for the capability to allow the app to see the device as online (not greyed out in the app). Did you test onboarding a button without it? |
May I ask what does it block exactly? Could not find much documentation about the provisioning states and, in fact, just realized many of my Matter devices have a provisioning state of NONFUNCTIONAL (probably due to driver changes) but they are working perfectly fine, no warnings or anything. An old post at the Community stated that it had no effect. |
@cjswedes Yes, I have tested onboarding a button without it and there is no difference in the UI elements with or without the extra event. I agree that there might have been some client reason for this event in the past, but it is no longer required. |
@mocelet Without this change, devices switched into this driver will get the |
|
Perfect, thanks as always @hcarter-775 for the insights! |
Description of Change
Remove
pushedevent during configuration. This is not a required operation, and generates events not pre-conditioned by a device event.Set device provisioning state back to PROVISIONED after a
driverSwitchedevent to block repeated events.Summary of Completed Tests
Tests updated. Driver switch tested with button device switched. Fresh button onboarding tested.