mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-25 18:26:35 +00:00
Enable Google assistant no 2fa for all entities (#16397)
This commit is contained in:
parent
6c25e23ad2
commit
25af9a9770
@ -4,6 +4,7 @@ export interface GoogleEntity {
|
|||||||
entity_id: string;
|
entity_id: string;
|
||||||
traits: string[];
|
traits: string[];
|
||||||
might_2fa: boolean;
|
might_2fa: boolean;
|
||||||
|
disable_2fa?: boolean;
|
||||||
}
|
}
|
||||||
|
|
||||||
export const fetchCloudGoogleEntities = (hass: HomeAssistant) =>
|
export const fetchCloudGoogleEntities = (hass: HomeAssistant) =>
|
||||||
|
@ -211,7 +211,6 @@ export class EntityVoiceSettings extends SubscribeMixin(LitElement) {
|
|||||||
(googleManual && key === "cloud.google_assistant");
|
(googleManual && key === "cloud.google_assistant");
|
||||||
|
|
||||||
const support2fa =
|
const support2fa =
|
||||||
this.entry &&
|
|
||||||
key === "cloud.google_assistant" &&
|
key === "cloud.google_assistant" &&
|
||||||
!googleManual &&
|
!googleManual &&
|
||||||
supported &&
|
supported &&
|
||||||
@ -256,7 +255,7 @@ export class EntityVoiceSettings extends SubscribeMixin(LitElement) {
|
|||||||
)}
|
)}
|
||||||
>
|
>
|
||||||
<ha-checkbox
|
<ha-checkbox
|
||||||
.checked=${!this.entry!.options?.[key]?.disable_2fa}
|
.checked=${!this._googleEntity!.disable_2fa}
|
||||||
@change=${this._2faChanged}
|
@change=${this._2faChanged}
|
||||||
></ha-checkbox>
|
></ha-checkbox>
|
||||||
</ha-formfield>
|
</ha-formfield>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user