mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-28 03:36:44 +00:00
parent
90526ac563
commit
4728c12225
@ -81,18 +81,31 @@ export class CloudGooglePref extends LitElement {
|
|||||||
</ul>
|
</ul>
|
||||||
${google_enabled
|
${google_enabled
|
||||||
? html`
|
? html`
|
||||||
<h3>Enable State Reporting</h3>
|
<div class="state-reporting">
|
||||||
<p>
|
<h3>
|
||||||
If you enable state reporting, Home Assistant will send
|
${this.hass!.localize(
|
||||||
<b>all</b> state changes of exposed entities to Google. This
|
"ui.panel.config.cloud.account.google.enable_state_reporting"
|
||||||
allows you to always see the latest states in the Google app.
|
)}
|
||||||
</p>
|
</h3>
|
||||||
|
<div class="state-reporting-switch">
|
||||||
<ha-switch
|
<ha-switch
|
||||||
.checked=${google_report_state}
|
.checked=${google_report_state}
|
||||||
@change=${this._reportToggleChanged}
|
@change=${this._reportToggleChanged}
|
||||||
></ha-switch>
|
></ha-switch>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<p>
|
||||||
|
${this.hass!.localize(
|
||||||
|
"ui.panel.config.cloud.account.google.info_state_reporting"
|
||||||
|
)}
|
||||||
|
</p>
|
||||||
|
|
||||||
<div class="secure_devices">
|
<div class="secure_devices">
|
||||||
|
<h3>
|
||||||
|
${this.hass!.localize(
|
||||||
|
"ui.panel.config.cloud.account.google.security_devices"
|
||||||
|
)}
|
||||||
|
</h3>
|
||||||
${this.hass!.localize(
|
${this.hass!.localize(
|
||||||
"ui.panel.config.cloud.account.google.enter_pin_info"
|
"ui.panel.config.cloud.account.google.enter_pin_info"
|
||||||
)}
|
)}
|
||||||
@ -194,7 +207,7 @@ export class CloudGooglePref extends LitElement {
|
|||||||
font-weight: 500;
|
font-weight: 500;
|
||||||
}
|
}
|
||||||
.secure_devices {
|
.secure_devices {
|
||||||
padding-top: 16px;
|
padding-top: 8px;
|
||||||
}
|
}
|
||||||
paper-input {
|
paper-input {
|
||||||
width: 250px;
|
width: 250px;
|
||||||
@ -208,6 +221,25 @@ export class CloudGooglePref extends LitElement {
|
|||||||
.spacer {
|
.spacer {
|
||||||
flex-grow: 1;
|
flex-grow: 1;
|
||||||
}
|
}
|
||||||
|
.state-reporting {
|
||||||
|
display: flex;
|
||||||
|
margin-top: 1.5em;
|
||||||
|
}
|
||||||
|
.state-reporting + p {
|
||||||
|
margin-top: 0.5em;
|
||||||
|
}
|
||||||
|
h3 {
|
||||||
|
margin: 0 0 8px 0;
|
||||||
|
}
|
||||||
|
.state-reporting h3 {
|
||||||
|
flex-grow: 1;
|
||||||
|
margin: 0;
|
||||||
|
}
|
||||||
|
.state-reporting-switch {
|
||||||
|
margin-top: 0.25em;
|
||||||
|
margin-right: 7px;
|
||||||
|
margin-left: 0.5em;
|
||||||
|
}
|
||||||
`;
|
`;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1032,9 +1032,12 @@
|
|||||||
"info": "With the Google Assistant integration for Home Assistant Cloud you'll be able to control all your Home Assistant devices via any Google Assistant-enabled device.",
|
"info": "With the Google Assistant integration for Home Assistant Cloud you'll be able to control all your Home Assistant devices via any Google Assistant-enabled device.",
|
||||||
"enable_ha_skill": "Activate the Home Assistant skill for Google Assistant",
|
"enable_ha_skill": "Activate the Home Assistant skill for Google Assistant",
|
||||||
"config_documentation": "Config documentation",
|
"config_documentation": "Config documentation",
|
||||||
|
"enable_state_reporting": "Enable State Reporting",
|
||||||
|
"info_state_reporting": "If you enable state reporting, Home Assistant will send all state changes of exposed entities to Google. This allows you to always see the latest states in the Google app.",
|
||||||
|
"security_devices": "Security Devices",
|
||||||
"enter_pin_info": "Please enter a pin to interact with security devices. Security devices are doors, garage doors and locks. You will be asked to say/enter this pin when interacting with such devices via Google Assistant.",
|
"enter_pin_info": "Please enter a pin to interact with security devices. Security devices are doors, garage doors and locks. You will be asked to say/enter this pin when interacting with such devices via Google Assistant.",
|
||||||
"devices_pin": "Secure Devices Pin",
|
"devices_pin": "Security Devices Pin",
|
||||||
"enter_pin_hint": "Enter a PIN to use secure devices",
|
"enter_pin_hint": "Enter a PIN to use security devices",
|
||||||
"sync_entities": "Sync Entities to Google",
|
"sync_entities": "Sync Entities to Google",
|
||||||
"manage_entities": "Manage Entities",
|
"manage_entities": "Manage Entities",
|
||||||
"enter_pin_error": "Unable to store pin:"
|
"enter_pin_error": "Unable to store pin:"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user