Enable Google assistant no 2fa for all entities (#16397)

This commit is contained in:
Bram Kragten 2023-05-03 16:12:49 +02:00 committed by GitHub
parent 6c25e23ad2
commit 25af9a9770
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -4,6 +4,7 @@ export interface GoogleEntity {
entity_id: string;
traits: string[];
might_2fa: boolean;
disable_2fa?: boolean;
}
export const fetchCloudGoogleEntities = (hass: HomeAssistant) =>

View File

@ -211,7 +211,6 @@ export class EntityVoiceSettings extends SubscribeMixin(LitElement) {
(googleManual && key === "cloud.google_assistant");
const support2fa =
this.entry &&
key === "cloud.google_assistant" &&
!googleManual &&
supported &&
@ -256,7 +255,7 @@ export class EntityVoiceSettings extends SubscribeMixin(LitElement) {
)}
>
<ha-checkbox
.checked=${!this.entry!.options?.[key]?.disable_2fa}
.checked=${!this._googleEntity!.disable_2fa}
@change=${this._2faChanged}
></ha-checkbox>
</ha-formfield>