mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-30 12:46:35 +00:00
Fix translation of home state (#8015)
This commit is contained in:
parent
e477fd567d
commit
5d9e30bbdc
@ -124,9 +124,13 @@ export const getLogbookMessage = (
|
|||||||
switch (domain) {
|
switch (domain) {
|
||||||
case "device_tracker":
|
case "device_tracker":
|
||||||
case "person":
|
case "person":
|
||||||
return state === "not_home"
|
if (state === "not_home") {
|
||||||
? hass.localize(`${LOGBOOK_LOCALIZE_PATH}.was_away`)
|
return hass.localize(`${LOGBOOK_LOCALIZE_PATH}.was_away`);
|
||||||
: hass.localize(
|
}
|
||||||
|
if (state === "home") {
|
||||||
|
return hass.localize(`${LOGBOOK_LOCALIZE_PATH}.was_at_home`);
|
||||||
|
}
|
||||||
|
return hass.localize(
|
||||||
`${LOGBOOK_LOCALIZE_PATH}.was_at_state`,
|
`${LOGBOOK_LOCALIZE_PATH}.was_at_state`,
|
||||||
"state",
|
"state",
|
||||||
state
|
state
|
||||||
|
Loading…
x
Reference in New Issue
Block a user