mirror of
https://github.com/home-assistant/frontend.git
synced 2026-05-08 17:28:46 +01:00
Fix Z-Wave dashboard picker showing disabled config entries (#29078)
* Fix Z-Wave dashboard picker showing disabled config entries * Fix Z-Wave dashboard picker showing ignored discoveries
This commit is contained in:
+5
-3
@@ -82,9 +82,11 @@ class ZWaveJSConfigEntryPicker extends LitElement {
|
||||
const entries = await getConfigEntries(this.hass, {
|
||||
domain: "zwave_js",
|
||||
});
|
||||
this._configEntries = entries.sort((a, b) =>
|
||||
caseInsensitiveStringCompare(a.title, b.title)
|
||||
);
|
||||
this._configEntries = entries
|
||||
.filter(
|
||||
(entry) => entry.disabled_by === null && entry.source !== "ignore"
|
||||
)
|
||||
.sort((a, b) => caseInsensitiveStringCompare(a.title, b.title));
|
||||
if (this._configEntries.length === 1) {
|
||||
navigate(
|
||||
`/config/zwave_js/dashboard?config_entry=${this._configEntries[0].entry_id}`,
|
||||
|
||||
Reference in New Issue
Block a user