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