Skip to content

Commit

Permalink
Replace "experimental" names (#667)
Browse files Browse the repository at this point in the history
  • Loading branch information
ludeeus authored Jun 10, 2023
1 parent 8869ba7 commit 1395f38
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 12 deletions.
8 changes: 4 additions & 4 deletions src/components/hacs-repository-owerflow-menu.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,12 @@ import { deleteResource, fetchResources } from "../../homeassistant-frontend/src
import { showConfirmationDialog } from "../../homeassistant-frontend/src/dialogs/generic/show-dialog-box";
import type { RepositoryBase } from "../data/repository";
import { repositoryUninstall, repositoryUpdate } from "../data/websocket";
import type { HacsExperimentalPanel } from "../panels/hacs-experimental-panel";
import type { HacsRepositoryPanel } from "../panels/hacs-repository-panel";
import type { HacsDashboard } from "../dashboards/hacs-dashboard";
import type { HacsRepositoryDashboard } from "../dashboards/hacs-repository-dashboard";
import { showHacsDownloadDialog, showHacsFormDialog } from "./dialogs/show-hacs-dialog";

export const repositoryMenuItems = memoizeOne(
(element: HacsRepositoryPanel | HacsExperimentalPanel, repository: RepositoryBase) => [
(element: HacsRepositoryDashboard | HacsDashboard, repository: RepositoryBase) => [
...(element.nodeName === "HACS-EXPERIMENTAL-PANEL"
? [
{
Expand Down Expand Up @@ -140,7 +140,7 @@ export const repositoryMenuItems = memoizeOne(
);

const _repositoryRemove = async (
element: HacsRepositoryPanel | HacsExperimentalPanel,
element: HacsRepositoryDashboard | HacsDashboard,
repository: RepositoryBase
) => {
if (repository.category === "plugin" && element.hacs.info?.lovelace_mode !== "yaml") {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,8 @@ const defaultKeyData = {
filterable: true,
};

@customElement("hacs-experimental-panel")
export class HacsExperimentalPanel extends LitElement {
@customElement("hacs-dashboard")
export class HacsDashboard extends LitElement {
@property({ attribute: false }) public hacs!: Hacs;

@property({ attribute: false }) public hass!: HomeAssistant;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ import { getRepositories, repositoryAdd } from "../data/websocket";
import { HacsStyles } from "../styles/hacs-common-style";
import { markdownWithRepositoryContext } from "../tools/markdown";

@customElement("hacs-repository-panel")
export class HacsRepositoryPanel extends LitElement {
@customElement("hacs-repository-dashboard")
export class HacsRepositoryDashboard extends LitElement {
@property({ attribute: false }) public hacs!: Hacs;

@property({ attribute: false }) public hass!: HomeAssistant;
Expand Down
8 changes: 4 additions & 4 deletions src/hacs-router.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,12 +70,12 @@ class HacsRouter extends HassRouterPage {
load: () => import("./hacs-my-redirect"),
},
dashboard: {
tag: "hacs-experimental-panel",
load: () => import("./panels/hacs-experimental-panel"),
tag: "hacs-dashboard",
load: () => import("./dashboards/hacs-dashboard"),
},
repository: {
tag: "hacs-repository-panel",
load: () => import("./panels/hacs-repository-panel"),
tag: "hacs-repository-dashboard",
load: () => import("./dashboards/hacs-repository-dashboard"),
},
},
};
Expand Down

0 comments on commit 1395f38

Please sign in to comment.