Fix hass.io panel for older version (#5365)

* Fix hass.io panel for older version

* Fix lint
pull/5351/head
Pascal Vizeli 2020-03-30 11:38:54 +02:00 committed by GitHub
parent f7ee712456
commit ddb525f6cd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 4 deletions

View File

@ -93,7 +93,7 @@ class HassioAddonRepositoryEl extends LitElement {
? "not_available"
: ""}
.iconImage=${atLeastVersion(
this.hass.connection.haVersion,
this.hass.config.version,
0,
105
) && addon.icon

View File

@ -661,8 +661,7 @@ class HassioAddonInfo extends LitElement {
private get _computeCannotIngressSidebar(): boolean {
return (
!this.addon.ingress ||
!atLeastVersion(this.hass.connection.haVersion, 0, 92)
!this.addon.ingress || !atLeastVersion(this.hass.config.version, 0, 92)
);
}

View File

@ -67,7 +67,7 @@ class HassioAddons extends LitElement {
? "running"
: "stopped"}
.iconImage=${atLeastVersion(
this.hass.connection.haVersion,
this.hass.config.version,
0,
105
) && addon.icon