From f31c1480f3d4ce5e0094ac285988111b05128364 Mon Sep 17 00:00:00 2001 From: Otto Winter Date: Sat, 1 Jun 2019 22:00:19 +0200 Subject: [PATCH] Fix dashboard for Py3 installs (#596) Fixes https://github.com/esphome/issues/issues/368 --- esphome/dashboard/dashboard.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/esphome/dashboard/dashboard.py b/esphome/dashboard/dashboard.py index 14b06a3c82..4df7b5a386 100644 --- a/esphome/dashboard/dashboard.py +++ b/esphome/dashboard/dashboard.py @@ -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