From 5348b36a7c58e63462a789fef921681958c07ea1 Mon Sep 17 00:00:00 2001 From: Otto Winter Date: Tue, 27 Aug 2019 21:51:59 +0200 Subject: [PATCH] Fix warnings about comments in lambdas Fixes https://github.com/esphome/issues/issues/593 --- esphome/__main__.py | 1 + 1 file changed, 1 insertion(+) diff --git a/esphome/__main__.py b/esphome/__main__.py index 05de49e8d0..98d302c82b 100644 --- a/esphome/__main__.py +++ b/esphome/__main__.py @@ -130,6 +130,7 @@ def wrap_to_code(name, comp): conf_str = yaml_util.dump(conf) if IS_PY2: conf_str = conf_str.decode('utf-8') + conf_str = conf_str.replace('//', '') cg.add(cg.LineComment(indent(conf_str))) yield coro(conf)