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"
|
||||
: ""}
|
||||
.iconImage=${atLeastVersion(
|
||||
this.hass.connection.haVersion,
|
||||
this.hass.config.version,
|
||||
0,
|
||||
105
|
||||
) && addon.icon
|
||||
|
|
|
@ -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)
|
||||
);
|
||||
}
|
||||
|
||||
|
|
|
@ -67,7 +67,7 @@ class HassioAddons extends LitElement {
|
|||
? "running"
|
||||
: "stopped"}
|
||||
.iconImage=${atLeastVersion(
|
||||
this.hass.connection.haVersion,
|
||||
this.hass.config.version,
|
||||
0,
|
||||
105
|
||||
) && addon.icon
|
||||
|
|
Loading…
Reference in New Issue