Fix bad key for add entities to view

This commit is contained in:
Steve Repsher 2022-08-10 15:59:15 -04:00
parent d21bdf2807
commit dba9658658
No known key found for this signature in database
GPG Key ID: 776C4F2DACF6131B

View File

@ -97,9 +97,7 @@ export const addEntitiesToLovelaceView = async (
try { try {
await saveConfig(hass!, null, newConfig); await saveConfig(hass!, null, newConfig);
} catch (err: any) { } catch (err: any) {
alert( alert(hass.localize("ui.panel.lovelace.add_entities.saving_failed"));
hass.localize("ui.panel.config.devices.add_entities.saving_failed")
);
} }
}, },
path: [0], path: [0],
@ -123,9 +121,7 @@ export const addEntitiesToLovelaceView = async (
await saveConfig(hass!, newUrlPath, newConfig); await saveConfig(hass!, newUrlPath, newConfig);
} catch { } catch {
alert( alert(
hass.localize( hass.localize("ui.panel.lovelace.add_entities.saving_failed")
"ui.panel.config.devices.add_entities.saving_failed"
)
); );
} }
}, },