From adc76ca1b898c0ca3476a5d612037cb7a5392217 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