mirror of
https://github.com/esphome/esphome.git
synced 2024-11-22 23:18:10 +01:00
Fix warnings about comments in lambdas
Fixes https://github.com/esphome/issues/issues/593
This commit is contained in:
parent
947a6034e3
commit
5348b36a7c
1 changed files with 1 additions and 0 deletions
|
@ -130,6 +130,7 @@ def wrap_to_code(name, comp):
|
||||||
conf_str = yaml_util.dump(conf)
|
conf_str = yaml_util.dump(conf)
|
||||||
if IS_PY2:
|
if IS_PY2:
|
||||||
conf_str = conf_str.decode('utf-8')
|
conf_str = conf_str.decode('utf-8')
|
||||||
|
conf_str = conf_str.replace('//', '')
|
||||||
cg.add(cg.LineComment(indent(conf_str)))
|
cg.add(cg.LineComment(indent(conf_str)))
|
||||||
yield coro(conf)
|
yield coro(conf)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue