Skip to content

Commit

Permalink
Only show stable add-ons in the store if not advanced mode (#11596)
Browse files Browse the repository at this point in the history
  • Loading branch information
ludeeus committed Feb 7, 2022
1 parent 2d33327 commit 6a51e2a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion hassio/src/addon-store/hassio-addon-repository.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,9 @@ class HassioAddonRepositoryEl extends LitElement {
const repo = this.repo;
let _addons = this.addons;
if (!this.hass.userData?.showAdvanced) {
_addons = _addons.filter((addon) => !addon.advanced);
_addons = _addons.filter(
(addon) => !addon.advanced && addon.stage === "stable"
);
}
const addons = this._getAddons(_addons, this.filter);

Expand Down

0 comments on commit 6a51e2a

Please sign in to comment.