mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-27 19:26:36 +00:00
parent
90526ac563
commit
4728c12225
@ -81,18 +81,31 @@ export class CloudGooglePref extends LitElement {
|
||||
</ul>
|
||||
${google_enabled
|
||||
? html`
|
||||
<h3>Enable State Reporting</h3>
|
||||
<div class="state-reporting">
|
||||
<h3>
|
||||
${this.hass!.localize(
|
||||
"ui.panel.config.cloud.account.google.enable_state_reporting"
|
||||
)}
|
||||
</h3>
|
||||
<div class="state-reporting-switch">
|
||||
<ha-switch
|
||||
.checked=${google_report_state}
|
||||
@change=${this._reportToggleChanged}
|
||||
></ha-switch>
|
||||
</div>
|
||||
</div>
|
||||
<p>
|
||||
If you enable state reporting, Home Assistant will send
|
||||
<b>all</b> state changes of exposed entities to Google. This
|
||||
allows you to always see the latest states in the Google app.
|
||||
${this.hass!.localize(
|
||||
"ui.panel.config.cloud.account.google.info_state_reporting"
|
||||
)}
|
||||
</p>
|
||||
<ha-switch
|
||||
.checked=${google_report_state}
|
||||
@change=${this._reportToggleChanged}
|
||||
></ha-switch>
|
||||
|
||||
<div class="secure_devices">
|
||||
<h3>
|
||||
${this.hass!.localize(
|
||||
"ui.panel.config.cloud.account.google.security_devices"
|
||||
)}
|
||||
</h3>
|
||||
${this.hass!.localize(
|
||||
"ui.panel.config.cloud.account.google.enter_pin_info"
|
||||
)}
|
||||
@ -194,7 +207,7 @@ export class CloudGooglePref extends LitElement {
|
||||
font-weight: 500;
|
||||
}
|
||||
.secure_devices {
|
||||
padding-top: 16px;
|
||||
padding-top: 8px;
|
||||
}
|
||||
paper-input {
|
||||
width: 250px;
|
||||
@ -208,6 +221,25 @@ export class CloudGooglePref extends LitElement {
|
||||
.spacer {
|
||||
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.",
|
||||
"enable_ha_skill": "Activate the Home Assistant skill for Google Assistant",
|
||||
"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.",
|
||||
"devices_pin": "Secure Devices Pin",
|
||||
"enter_pin_hint": "Enter a PIN to use secure devices",
|
||||
"devices_pin": "Security Devices Pin",
|
||||
"enter_pin_hint": "Enter a PIN to use security devices",
|
||||
"sync_entities": "Sync Entities to Google",
|
||||
"manage_entities": "Manage Entities",
|
||||
"enter_pin_error": "Unable to store pin:"
|
||||
|
Loading…
x
Reference in New Issue
Block a user