From e0a556e987add40b51638bf5412a5a1aeddaeb65 Mon Sep 17 00:00:00 2001 From: Otto Winter Date: Wed, 20 Mar 2019 13:10:16 +0100 Subject: [PATCH] Fix IPAddress in validate (#488) Fixes https://github.com/esphome/issues/issues/141 --- esphome/yaml_util.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/esphome/yaml_util.py b/esphome/yaml_util.py index a47d6d8122..96132e69fd 100644 --- a/esphome/yaml_util.py +++ b/esphome/yaml_util.py @@ -328,7 +328,7 @@ def represent_odict(dump, tag, mapping, flow_style=None): def represent_secret(value): - return yaml.ScalarNode(tag=u'!secret', value=_SECRET_VALUES[value]) + return yaml.ScalarNode(tag=u'!secret', value=_SECRET_VALUES[text_type(value)]) def unicode_representer(_, uni):