Support executing actions from the query string.

This commit is contained in:
Dermot Duffy
2023-03-13 20:59:07 -07:00
parent ad22ee7e00
commit 292a8083d7
6 changed files with 209 additions and 11 deletions
+2 -2
View File
@@ -52,9 +52,9 @@ export function getLanguage(hass?: HomeAssistant): string {
export const loadLanguages = async (hass: HomeAssistant): Promise<void> => {
const lang = getLanguage(hass);
if (lang === 'it') {
languages['it'] = await import('./languages/it.json');
languages[lang] = await import('./languages/it.json');
} else if (lang === 'pt_BR') {
languages['pt_BR'] = await import('./languages/pt-BR.json');
languages[lang] = await import('./languages/pt-BR.json');
}
if (lang) {