zigbee2mqtt-frontend
zigbee2mqtt-frontend copied to clipboard
[Bug]: Item remove button on settings page for setting/options like debounce_ignore does nothing
What happened?
Problem
The red - button in the device's Settings page for options like ignore_debounce, filtered_optimistic, filtered_attributes does not remove the item.
Clicking the - here will do nothing. At least not after it was saved.

Writing the options via MQTT like
{
"id": "mydeviceid",
"options": {
"debounce_ignore": null,
"filtered_optimistic": null,
"filtered_attributes": null
}
}
to zigbee2mqtt/bridge/request/device/options works fine.
How to reproduce
- Go to a device's
Settingstab. - Add a
Ignore debounceoption. - Save/Submit
- Click the
-to attempt remove the option
Expected behavior
I expected the option to be removed
Proposed solution
Remove the option. Set it to null when it's the last to remove it completely
Further information
Tested with
| Software | Version |
|---|---|
| Zigbee2MQTT | 1.25.0-dev (8c4312d) |
| Frontend | 0.6.83 |
| Chrome | 100.0.4896.88 |
Addendum
It's not a bug but it would be nice if other options could be reset/removed too. You can't remove the icon, for example.
What browsers are you seeing the problem on?
Chrome
Relevant stacktrace
No response
Did you download state.json.zip?
I will not attach state.json.zip
I can confirm this. Had to manualy edit my config file.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Bump to keep the bot happy. This is still an issue.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Unstale.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
I must've missed to unstale this. Please reopen. This is still an issue.