mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-23 17:26:42 +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) {
|
private async _enabledToggleChanged(ev) {
|
||||||
const toggle = ev.target as HaSwitch;
|
const toggle = ev.target as HaSwitch;
|
||||||
try {
|
try {
|
||||||
await updateCloudPref(this.hass, { [toggle.id]: toggle.checked! });
|
await updateCloudPref(this.hass, { google_enabled: toggle.checked! });
|
||||||
fireEvent(this, "ha-refresh-cloud-status");
|
fireEvent(this, "ha-refresh-cloud-status");
|
||||||
} catch (err: any) {
|
} catch (err: any) {
|
||||||
toggle.checked = !toggle.checked;
|
toggle.checked = !toggle.checked;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user