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

* Fix hass.io panel for older version

* Fix lint
This commit is contained in:
Pascal Vizeli
2020-03-30 11:38:54 +02:00
committed by GitHub
parent f7ee712456
commit ddb525f6cd
3 changed files with 3 additions and 4 deletions
@@ -93,7 +93,7 @@ class HassioAddonRepositoryEl extends LitElement {
? "not_available"
: ""}
.iconImage=${atLeastVersion(
this.hass.connection.haVersion,
this.hass.config.version,
0,
105
) && addon.icon
+1 -2
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)
);
}
+1 -1
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