Fix IPAddress in validate (#488)

Fixes https://github.com/esphome/issues/issues/141
This commit is contained in:
Otto Winter 2019-03-20 13:10:16 +01:00
parent 4452473735
commit 475aa4879c
No known key found for this signature in database
GPG Key ID: DB66C0BE6013F97E

View File

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