mirror of
https://github.com/home-assistant/frontend.git
synced 2025-11-13 04:50:29 +00:00
Fix call to localize in mixin
This commit is contained in:
@@ -78,19 +78,19 @@ export default (superClass) =>
|
||||
);
|
||||
}
|
||||
if (service === "turn_on" && serviceData.entity_id) {
|
||||
message = this.localize(
|
||||
message = this.hass.localize(
|
||||
"ui.notification_toast.entity_turned_on",
|
||||
"entity",
|
||||
name || serviceData.entity_id
|
||||
);
|
||||
} else if (service === "turn_off" && serviceData.entity_id) {
|
||||
message = this.localize(
|
||||
message = this.hass.localize(
|
||||
"ui.notification_toast.entity_turned_off",
|
||||
"entity",
|
||||
name || serviceData.entity_id
|
||||
);
|
||||
} else {
|
||||
message = this.localize(
|
||||
message = this.hass.localize(
|
||||
"ui.notification_toast.service_called",
|
||||
"service",
|
||||
`${domain}/${service}`
|
||||
@@ -107,7 +107,7 @@ export default (superClass) =>
|
||||
serviceData
|
||||
);
|
||||
}
|
||||
const message = this.localize(
|
||||
const message = this.hass.localize(
|
||||
"ui.notification_toast.service_call_failed",
|
||||
"service",
|
||||
`${domain}/${service}`
|
||||
|
||||
Reference in New Issue
Block a user