mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-16 13:56:35 +00:00
Fix live-logs loading (#22737)
This commit is contained in:
parent
e5e84acd07
commit
25c02b1219
@ -339,6 +339,18 @@ class ErrorLogCard extends LitElement {
|
|||||||
|
|
||||||
protected willUpdate(changedProps: PropertyValues) {
|
protected willUpdate(changedProps: PropertyValues) {
|
||||||
super.willUpdate(changedProps);
|
super.willUpdate(changedProps);
|
||||||
|
if (
|
||||||
|
this._downloadSupported === undefined ||
|
||||||
|
this._streamSupported === undefined
|
||||||
|
) {
|
||||||
|
this._downloadSupported = downloadFileSupported(this.hass);
|
||||||
|
this._streamSupported = atLeastVersion(
|
||||||
|
this.hass.config.version,
|
||||||
|
2024,
|
||||||
|
11
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
if (changedProps.has("provider")) {
|
if (changedProps.has("provider")) {
|
||||||
this._boot = 0;
|
this._boot = 0;
|
||||||
this._loadLogs();
|
this._loadLogs();
|
||||||
@ -346,8 +358,6 @@ class ErrorLogCard extends LitElement {
|
|||||||
if (this.hasUpdated) {
|
if (this.hasUpdated) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
this._streamSupported = atLeastVersion(this.hass.config.version, 2024, 11);
|
|
||||||
this._downloadSupported = downloadFileSupported(this.hass);
|
|
||||||
// just needs to be loaded once, because only the host endpoints provide boots information
|
// just needs to be loaded once, because only the host endpoints provide boots information
|
||||||
this._loadBoots();
|
this._loadBoots();
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user