More error checking. Increased stability in safari

This commit is contained in:
2022-08-04 11:33:43 +00:00
parent 8da698ab82
commit e2bdad02f4
7 changed files with 47 additions and 15 deletions

View File

@@ -93,6 +93,14 @@ class BrowserModRegisteredBrowsersCard extends LitElement {
@change=${this.toggleCameraEnabled}
></ha-switch>
</ha-settings-row>
${window.browser_mod?.cameraError
? html`
<ha-alert alert-type="error">
Setting up the device camera failed. Make sure you have
allowed use of the camera in your browser.
</ha-alert>
`
: ""}
${this._renderInteractionAlert()}
${this._renderFKBSettingsInfo()}
`