Skip to content

Commit f33cfb6

Browse files
committed
Fix problem with default locale
1 parent 9afb327 commit f33cfb6

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

.vscode/settings.json

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"files.associations": {
3+
"*.yaml": "home-assistant"
4+
}
5+
}

custom_components/luxtronik/helpers/helper.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ def get_sensor_text(lang: LANGUAGES, key: str) -> str:
3434
__content_default__ = _load_lang_from_file(
3535
f"../translations/texts.{LANG_DEFAULT}.json"
3636
)
37-
if lang != LANG_DEFAULT and key in __content_locale__:
37+
if lang != LANG_DEFAULT and not __content_locale__ is None and key in __content_locale__:
3838
return __content_locale__[key]
3939
if key in __content_default__:
4040
return __content_default__[key]

custom_components/luxtronik/manifest.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"domain": "luxtronik2",
33
"name": "Luxtronik",
4-
"version": "2022.11.18",
4+
"version": "2022.11.20",
55
"config_flow": true,
66
"iot_class": "local_polling",
77
"documentation": "https://www.home-assistant.io/integrations/luxtronik",

0 commit comments

Comments
 (0)