mirror of
https://github.com/joBr99/nspanel-lovelace-ui.git
synced 2026-02-16 18:06:59 +01:00
added translation between states and loc
This commit is contained in:
@@ -1121,7 +1121,7 @@ def lookup(locale, inputstr):
|
|||||||
def get_translation(locale, inputstr):
|
def get_translation(locale, inputstr):
|
||||||
inputstr = inputstr.replace("heat", "heating").replace("dry", "drying").replace("cool", "cooling").replace("fan_only", "fan")
|
inputstr = inputstr.replace("heat", "heating").replace("dry", "drying").replace("cool", "cooling").replace("fan_only", "fan")
|
||||||
if inputstr == "heat_cool":
|
if inputstr == "heat_cool":
|
||||||
return f'{lookup(locale, "heating")}/{lookup(locale, "cooling")}}'
|
return f'{lookup(locale, "heating")}/{lookup(locale, "cooling")}'
|
||||||
|
|
||||||
return lookup(locale, inputstr)
|
return lookup(locale, inputstr)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user