Skip to content

Commit

Permalink
Add missing status
Browse files Browse the repository at this point in the history
  • Loading branch information
ludeeus committed Feb 29, 2020
1 parent cdabb4e commit 55d9b03
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/HacsFrontend.ts
Original file line number Diff line number Diff line change
Expand Up @@ -328,6 +328,7 @@ class HacsFrontendBase extends LitElement {
.hacs=${this.hacs}
.hass=${this.hass}
.route=${this.route}
.status=${this.status}
.lovelaceconfig=${this.lovelaceconfig}
.configuration=${this.configuration}
>
Expand Down
2 changes: 2 additions & 0 deletions src/components/repositorybanner/LegacyUrlForPlugins.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ export class HacsLegacyUrlForPlugins extends HacsRepositoryBanner {
const title = "Legacy URL's detected";
const resources = this.lovelaceconfig as LovelaceResourceConfig[];

console.log(resources);

if (!resources) return html``;

this._wrongURL = resources?.filter(resource => {
Expand Down
4 changes: 3 additions & 1 deletion src/panels/settings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,15 @@ import {
} from "lit-element";
import { HomeAssistant } from "custom-card-helpers";
import { HACS } from "../Hacs";
import { Route, LovelaceConfig, LovelaceResourceConfig } from "../data";
import { Route, LovelaceConfig, LovelaceResourceConfig, Status } from "../data";

@customElement("hacs-settings")
export class HacsSettings extends LitElement {
@property() public hacs!: HACS;
@property() public hass!: HomeAssistant;
@property() public lovelaceconfig: LovelaceConfig | LovelaceResourceConfig[];
@property() public route!: Route;
@property() public status!: Status;

render(): TemplateResult | void {
if (this.hacs === undefined) {
Expand All @@ -26,6 +27,7 @@ export class HacsSettings extends LitElement {
<hacs-body>
<hacs-legacy-url-for-plugins
.hass=${this.hass}
.status=${this.status}
.lovelaceconfig=${this.lovelaceconfig}
>
</hacs-legacy-url-for-plugins>
Expand Down

0 comments on commit 55d9b03

Please sign in to comment.