Fix dashboard for Py3 installs (#596)

Fixes https://github.com/esphome/issues/issues/368
This commit is contained in:
Otto Winter 2019-06-01 22:00:19 +02:00
parent 8f8892440c
commit adc76ca1b8
No known key found for this signature in database
GPG key ID: DB66C0BE6013F97E

View file

@ -169,7 +169,7 @@ def websocket_class(cls):
if not hasattr(cls, '_message_handlers'):
cls._message_handlers = {}
for _, method in cls.__dict__.iteritems():
for _, method in cls.__dict__.items():
if hasattr(method, "_message_handler"):
cls._message_handlers[method._message_handler] = method