Add a tip for my shortcut (#12462)

This commit is contained in:
Paulus Schoutsen 2022-04-26 22:01:40 -07:00 committed by GitHub
parent f82dada3e5
commit 293df61872
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 5 deletions

View File

@ -1,6 +1,6 @@
import type { ActionDetail } from "@material/mwc-list";
import "@material/mwc-list/mwc-list-item";
import { mdiCloudLock, mdiDotsVertical, mdiMagnify, mdiNewBox } from "@mdi/js";
import { mdiCloudLock, mdiDotsVertical, mdiMagnify } from "@mdi/js";
import "@polymer/app-layout/app-header/app-header";
import "@polymer/app-layout/app-toolbar/app-toolbar";
import { HassEntities } from "home-assistant-js-websocket";
@ -81,12 +81,12 @@ const randomTip = (hass: HomeAssistant) => {
rel="noreferrer"
>Newsletter</a
>
<ha-svg-icon class="new" .path=${mdiNewBox}></ha-svg-icon
></span>`
</span>`
),
weight: 2,
},
{ content: hass.localize("ui.tips.key_c_hint"), weight: 1 },
{ content: hass.localize("ui.tips.key_m_hint"), weight: 1 },
];
tips.forEach((tip) => {

View File

@ -1085,7 +1085,7 @@
"integration_starting": "Starting {integration}, not everything will be available until it is finished.",
"triggered": "Triggered {name}",
"dismiss": "Dismiss",
"no_matching_link_found": "No matching my link found for {path}"
"no_matching_link_found": "No matching My link found for {path}"
},
"sidebar": {
"external_app_configuration": "App Configuration",
@ -4286,7 +4286,8 @@
},
"tips": {
"key_c_hint": "Press 'c' on any page to open the command dialog",
"key_e_hint": "Press 'e' on any page to open the entity search dialog"
"key_e_hint": "Press 'e' on any page to open the entity search dialog",
"key_m_hint": "Press 'm' on any page to get the My Home Assistant link"
}
},
"supervisor": {