mirror of
https://github.com/joBr99/nspanel-lovelace-ui.git
synced 2026-01-03 21:34:20 +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):
|
||||
inputstr = inputstr.replace("heat", "heating").replace("dry", "drying").replace("cool", "cooling").replace("fan_only", "fan")
|
||||
if inputstr == "heat_cool":
|
||||
return f'{lookup(locale, "heating")}/{lookup(locale, "cooling")}}'
|
||||
return f'{lookup(locale, "heating")}/{lookup(locale, "cooling")}'
|
||||
|
||||
return lookup(locale, inputstr)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user