From 71947bb6ac19fd9d80195f9d6042dfd04aaa854d Mon Sep 17 00:00:00 2001 From: Otto Winter Date: Thu, 4 Oct 2018 19:01:13 +0200 Subject: [PATCH] Fix using unicode in lambdas (#141) https://github.com/OttoWinter/esphomeyaml/issues/128#issuecomment-425777989 --- esphomeyaml/helpers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/esphomeyaml/helpers.py b/esphomeyaml/helpers.py index fd1ba8b604..601205aa87 100644 --- a/esphomeyaml/helpers.py +++ b/esphomeyaml/helpers.py @@ -106,7 +106,7 @@ class ExpressionList(Expression): self.args.append(exp) def __str__(self): - text = u", ".join(str(x) for x in self.args) + text = u", ".join(unicode(x) for x in self.args) return indent_all_but_first_and_last(text)