- ${hasEncryptionKey - ? "The backup is encrypted. Which encryption key would you like to use to decrypt the backup?" - : "The backup is encrypted. Provide the encryption key to decrypt the backup."} -
-- ${hasEncryptionKey - ? "The backup is encrypted. Which encryption key would you like to use to decrypt the backup?" - : "The backup is encrypted. Provide the encryption key to decrypt the backup."} -
-+ Your backup will be restored and all current data will be overwritten. + Depending on the size of the backup, this can take a while. +
`; + } + + private _renderEncryption() { + return html`+ ${this._userPassword + ? "The provided encryption key was incorrect, please try again." + : this._backupEncryptionKey + ? "The backup is encrypted with a different key or password than that is saved on this system. Please enter the key for this backup." + : "The backup is encrypted. Provide the encryption key to decrypt the backup."} +
++ ${this.hass.connected + ? this._restoreState() + : "Restarting Home Asssistant"} +
+