Fixes to script localization (#3930)

* Fixes

* fix toast
This commit is contained in:
Bram Kragten
2019-10-04 21:46:32 +02:00
committed by GitHub
parent ba79633758
commit 848dd7e071
3 changed files with 17 additions and 11 deletions

View File

@@ -113,11 +113,11 @@ class HaScriptPicker extends LitElement {
const script = ev.currentTarget.script as HassEntity;
await triggerScript(this.hass, script.entity_id);
showToast(this, {
message: `${this.hass.localize(
"ui.dialogs.notification_toast.triggered",
message: this.hass.localize(
"ui.notification_toast.triggered",
"name",
computeStateName(script)
)}`,
),
});
}