mirror of
https://github.com/esphome/esphome.git
synced 2025-01-31 18:20:53 +00:00
Fix dashboard for Py3 installs (#596)
Fixes https://github.com/esphome/issues/issues/368
This commit is contained in:
parent
291d4be772
commit
f31c1480f3
@ -169,7 +169,7 @@ def websocket_class(cls):
|
|||||||
if not hasattr(cls, '_message_handlers'):
|
if not hasattr(cls, '_message_handlers'):
|
||||||
cls._message_handlers = {}
|
cls._message_handlers = {}
|
||||||
|
|
||||||
for _, method in cls.__dict__.iteritems():
|
for _, method in cls.__dict__.items():
|
||||||
if hasattr(method, "_message_handler"):
|
if hasattr(method, "_message_handler"):
|
||||||
cls._message_handlers[method._message_handler] = method
|
cls._message_handlers[method._message_handler] = method
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user