Add browser to diagnostics.

This commit is contained in:
Dermot Duffy
2022-06-12 08:48:52 -07:00
parent c308c7796d
commit 5ea0b0d739
+3 -1
View File
@@ -1368,6 +1368,8 @@ export class FrigateCard extends LitElement {
context: { context: {
ha_version: this._hass.config.version, ha_version: this._hass.config.version,
card_version: CARD_VERSION, card_version: CARD_VERSION,
browser: navigator.userAgent,
date: new Date(),
frigate_version: Object.fromEntries(frigateVersionMap), frigate_version: Object.fromEntries(frigateVersionMap),
lang: getLanguage(), lang: getLanguage(),
...(this._rawConfig && { config: this._rawConfig }), ...(this._rawConfig && { config: this._rawConfig }),
@@ -1643,7 +1645,7 @@ export class FrigateCard extends LitElement {
*/ */
protected _getMergedActions(): Actions { protected _getMergedActions(): Actions {
let specificActions: Actions | undefined = undefined; let specificActions: Actions | undefined = undefined;
if (this._view?.is('live')) { if (this._view?.is('live')) {
specificActions = this._getConfig().live.actions; specificActions = this._getConfig().live.actions;
} else if (this._view?.isGalleryView()) { } else if (this._view?.isGalleryView()) {