mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-26 02:36:37 +00:00
Fall back to use handler if translations broken (#4777)
This commit is contained in:
parent
8a4c52aeb7
commit
e5387e5806
@ -39,7 +39,8 @@ class StepFlowPickHandler extends LitElement {
|
|||||||
private _getHandlers = memoizeOne((h: string[], filter?: string) => {
|
private _getHandlers = memoizeOne((h: string[], filter?: string) => {
|
||||||
const handlers: HandlerObj[] = h.map((handler) => {
|
const handlers: HandlerObj[] = h.map((handler) => {
|
||||||
return {
|
return {
|
||||||
name: this.hass.localize(`component.${handler}.config.title`),
|
name:
|
||||||
|
this.hass.localize(`component.${handler}.config.title`) || handler,
|
||||||
slug: handler,
|
slug: handler,
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user