mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-28 19:56:42 +00:00
Fix call to localize in mixin
This commit is contained in:
parent
d71d5aa855
commit
fa3889b549
@ -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}`
|
||||
|
Loading…
x
Reference in New Issue
Block a user