added translation between states and loc

This commit is contained in:
Johannes
2022-05-28 23:01:23 +02:00
parent 10655e6c35
commit 1be515719e

View File

@@ -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)