Fix hass.io panel for older version (#5365)
* Fix hass.io panel for older version * Fix lintpull/5351/head
parent
f7ee712456
commit
ddb525f6cd
|
@ -93,7 +93,7 @@ class HassioAddonRepositoryEl extends LitElement {
|
||||||
? "not_available"
|
? "not_available"
|
||||||
: ""}
|
: ""}
|
||||||
.iconImage=${atLeastVersion(
|
.iconImage=${atLeastVersion(
|
||||||
this.hass.connection.haVersion,
|
this.hass.config.version,
|
||||||
0,
|
0,
|
||||||
105
|
105
|
||||||
) && addon.icon
|
) && addon.icon
|
||||||
|
|
|
@ -661,8 +661,7 @@ class HassioAddonInfo extends LitElement {
|
||||||
|
|
||||||
private get _computeCannotIngressSidebar(): boolean {
|
private get _computeCannotIngressSidebar(): boolean {
|
||||||
return (
|
return (
|
||||||
!this.addon.ingress ||
|
!this.addon.ingress || !atLeastVersion(this.hass.config.version, 0, 92)
|
||||||
!atLeastVersion(this.hass.connection.haVersion, 0, 92)
|
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -67,7 +67,7 @@ class HassioAddons extends LitElement {
|
||||||
? "running"
|
? "running"
|
||||||
: "stopped"}
|
: "stopped"}
|
||||||
.iconImage=${atLeastVersion(
|
.iconImage=${atLeastVersion(
|
||||||
this.hass.connection.haVersion,
|
this.hass.config.version,
|
||||||
0,
|
0,
|
||||||
105
|
105
|
||||||
) && addon.icon
|
) && addon.icon
|
||||||
|
|
Loading…
Reference in New Issue