always load os data if supervisor

This commit is contained in:
Bram Kragten 2022-09-06 11:33:31 +02:00
parent 8c98326e31
commit 7c4837763e
No known key found for this signature in database
GPG Key ID: FBE2DFDB363EF55B

View File

@ -352,11 +352,10 @@ class HaConfigHardware extends SubscribeMixin(LitElement) {
try { try {
if (isComponentLoaded(this.hass, "hardware")) { if (isComponentLoaded(this.hass, "hardware")) {
this._hardwareInfo = await this.hass.callWS({ type: "hardware/info" }); this._hardwareInfo = await this.hass.callWS({ type: "hardware/info" });
} else if (isHassioLoaded) {
this._OSData = await fetchHassioHassOsInfo(this.hass);
} }
if (isHassioLoaded) { if (isHassioLoaded) {
this._OSData = await fetchHassioHassOsInfo(this.hass);
this._hostData = await fetchHassioHostInfo(this.hass); this._hostData = await fetchHassioHostInfo(this.hass);
} }
} catch (err: any) { } catch (err: any) {