mirror of
https://github.com/esphome/esphome.git
synced 2025-02-21 20:38:16 +00:00
Fix IPAddress in validate (#488)
Fixes https://github.com/esphome/issues/issues/141
This commit is contained in:
parent
4452473735
commit
475aa4879c
@ -328,7 +328,7 @@ def represent_odict(dump, tag, mapping, flow_style=None):
|
|||||||
|
|
||||||
|
|
||||||
def represent_secret(value):
|
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):
|
def unicode_representer(_, uni):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user