Refactor to avoid use of "all-static" classes.

This commit is contained in:
Dermot Duffy
2022-05-12 21:06:27 -07:00
parent 6b30487229
commit 441162f052
9 changed files with 454 additions and 462 deletions
+2 -2
View File
@@ -84,7 +84,7 @@ import {
shouldUpdateBasedOnHass,
sideLoadHomeAssistantElements
} from './utils/ha';
import { BrowseMediaUtil } from './utils/ha/browse-media.js';
import { getEventID } from './utils/ha/browse-media.js';
import { supportsFeature } from './utils/ha/update.js';
import { isValidMediaShowInfo } from './utils/media-info.js';
import { ResolvedMediaCache } from './utils/resolved-media.js';
@@ -915,7 +915,7 @@ export class FrigateCard extends LitElement {
});
return;
}
const event_id = BrowseMediaUtil.getEventID(this._view.media);
const event_id = getEventID(this._view.media);
if (!event_id) {
this._setMessageAndUpdate({
message: localize('error.download_no_event_id'),