mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-22 16:56:35 +00:00
Fix Google Cloud enable/disable toggle (#14035)
This commit is contained in:
parent
1b5571557c
commit
310b110b8b
@ -179,7 +179,7 @@ export class CloudGooglePref extends LitElement {
|
||||
private async _enabledToggleChanged(ev) {
|
||||
const toggle = ev.target as HaSwitch;
|
||||
try {
|
||||
await updateCloudPref(this.hass, { [toggle.id]: toggle.checked! });
|
||||
await updateCloudPref(this.hass, { google_enabled: toggle.checked! });
|
||||
fireEvent(this, "ha-refresh-cloud-status");
|
||||
} catch (err: any) {
|
||||
toggle.checked = !toggle.checked;
|
||||
|
Loading…
x
Reference in New Issue
Block a user