mirror of
https://github.com/esphome/esphome.git
synced 2025-09-10 15:22:24 +01:00
[ruff] Enable PERF rules and fix all violations (#9874)
This commit is contained in:
@@ -144,7 +144,7 @@ def websocket_class(cls):
|
||||
if not hasattr(cls, "_message_handlers"):
|
||||
cls._message_handlers = {}
|
||||
|
||||
for _, method in cls.__dict__.items():
|
||||
for method in cls.__dict__.values():
|
||||
if hasattr(method, "_message_handler"):
|
||||
cls._message_handlers[method._message_handler] = method
|
||||
|
||||
|
Reference in New Issue
Block a user