1
0
mirror of https://github.com/esphome/esphome.git synced 2025-09-21 12:42:21 +01:00

Fix Python 3 conversion errors

Fixes #299
This commit is contained in:
Otto Winter
2019-01-05 14:24:15 +01:00
parent 907be3025c
commit 3cd1c2d723
5 changed files with 43 additions and 18 deletions

View File

@@ -8,6 +8,7 @@ from esphomeyaml.const import CONF_FILE, CONF_GLYPHS, CONF_ID, CONF_SIZE
from esphomeyaml.core import CORE, HexInt
from esphomeyaml.cpp_generator import ArrayInitializer, MockObj, Pvariable, RawExpression, add
from esphomeyaml.cpp_types import App
from esphomeyaml.py_compat import sort_by_cmp
DEPENDENCIES = ['display']
MULTI_CONF = True
@@ -37,7 +38,7 @@ def validate_glyphs(value):
return 1
raise vol.Invalid(u"Found duplicate glyph {}".format(x))
value.sort(cmp=comparator)
sort_by_cmp(value, comparator)
return value