diff --git a/src/data/cloud.ts b/src/data/cloud.ts
index b498428f9a..c732b2a65f 100644
--- a/src/data/cloud.ts
+++ b/src/data/cloud.ts
@@ -18,6 +18,7 @@ export interface CloudPreferences {
google_enabled: boolean;
alexa_enabled: boolean;
remote_enabled: boolean;
+ remote_allow_remote_enable: boolean;
google_secure_devices_pin: string | undefined;
cloudhooks: { [webhookId: string]: CloudWebhook };
alexa_report_state: boolean;
@@ -139,6 +140,7 @@ export const updateCloudPref = (
google_report_state?: CloudPreferences["google_report_state"];
google_secure_devices_pin?: CloudPreferences["google_secure_devices_pin"];
tts_default_voice?: CloudPreferences["tts_default_voice"];
+ remote_allow_remote_enable?: CloudPreferences["remote_allow_remote_enable"];
}
) =>
hass.callWS({
diff --git a/src/panels/config/cloud/account/cloud-remote-pref.ts b/src/panels/config/cloud/account/cloud-remote-pref.ts
index bcfb4bdde7..b74e94dce3 100644
--- a/src/panels/config/cloud/account/cloud-remote-pref.ts
+++ b/src/panels/config/cloud/account/cloud-remote-pref.ts
@@ -13,6 +13,7 @@ import {
CloudStatusLoggedIn,
connectCloudRemote,
disconnectCloudRemote,
+ updateCloudPref,
} from "../../../../data/cloud";
import type { HomeAssistant } from "../../../../types";
import { showToast } from "../../../../util/toast";
@@ -29,7 +30,8 @@ export class CloudRemotePref extends LitElement {
return nothing;
}
- const { remote_enabled } = this.cloudStatus.prefs;
+ const { remote_enabled, remote_allow_remote_enable } =
+ this.cloudStatus.prefs;
const {
remote_connected,
@@ -126,6 +128,12 @@ export class CloudRemotePref extends LitElement {
.path=${mdiContentCopy}
@click=${this._copyURL}
>
+