mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-23 17:26:42 +00:00
Fetch OS info from Supervisor if we do not return anything for hardware (#13614)
Co-authored-by: Bram Kragten <mail@bramkragten.nl>
This commit is contained in:
parent
f461825a59
commit
00bc315fc1
@ -352,7 +352,9 @@ 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) {
|
}
|
||||||
|
|
||||||
|
if (isHassioLoaded && !this._hardwareInfo?.hardware.length) {
|
||||||
this._OSData = await fetchHassioHassOsInfo(this.hass);
|
this._OSData = await fetchHassioHassOsInfo(this.hass);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user